{"id":43832854,"url":"https://github.com/openthc/chat","last_synced_at":"2026-02-06T03:33:24.036Z","repository":{"id":95281007,"uuid":"218592196","full_name":"openthc/chat","owner":"openthc","description":"Our Chat System using Mattermost","archived":false,"fork":false,"pushed_at":"2025-11-10T17:41:44.000Z","size":107,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-11-10T19:22:13.692Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/openthc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-10-30T18:09:34.000Z","updated_at":"2025-11-10T17:41:48.000Z","dependencies_parsed_at":"2025-03-24T19:34:22.241Z","dependency_job_id":"6148f5fc-61ee-491f-86bd-76c3868a9d4d","html_url":"https://github.com/openthc/chat","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/openthc/chat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openthc%2Fchat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openthc%2Fchat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openthc%2Fchat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openthc%2Fchat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openthc","download_url":"https://codeload.github.com/openthc/chat/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openthc%2Fchat/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29148254,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-06T02:39:25.012Z","status":"ssl_error","status_checked_at":"2026-02-06T02:37:22.784Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-02-06T03:33:23.331Z","updated_at":"2026-02-06T03:33:24.021Z","avatar_url":"https://github.com/openthc.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Chat\n\nOpenTHC Chat System.\nTools for deploying and managing Mattermost integrated into ... stuff.\n\nChat is Mattermost service running behind an Nginx proxy.\n\n\n## Create Database\n\n```sql\ncreate user openthc_chat with encrypted password 'openthc_chat';\ncreate database openthc_chat with owner openthc_chat;\n```\n\n\n## Install Mattermost\n\n- [Download](https://mattermost.com/download/)\n- [Install Tarball](https://docs.mattermost.com/install/install-tar.html)\n- [Docker](https://docs.mattermost.com/install/install-docker.html)\n\nThen configure it.\nUse our [example configuration file](etc/mattermost-config.json) and change all the `openthc.example.com` to something good.\n\n\n## Create First (root) User\n\nHave to have the config values TeamSettings.EnableUserCreation (maybe?) and  EmailSettings.EnableSignUpWithEmail both set to TRUE for setup.\nThen disable after the first user is added.\n\n```\n./mattermost/bin/mmctl user create --email \u003cSOMETHING\u003e --username \u003cSOMETHING\u003e --password '\u003cPASSWORD\u003e'\n./mattermost/bin/mmctl auth login https://chat.openthc.example.com/\n```\n\nThen put the token from `~/.config/mmctl/config` into `etc/config.php` as `mattermost.root-sk`\n\n\n## Create Teams\n\n```\n./bin/chat-init.sh\n```\n\nThen you have to go into each Team and upload files and configure the other nice things in there, manually.\n\n\n## Permissions\n\nYou have to go into this permissions page and configure them as you see fit.\n\nhttps://chat.openthc.example.com/admin_console/user_management/permissions/system_scheme\n\n\n## Caddy\n\nSee ./etc/Caddyfile-example\n\n\n## Upgrade\n\n- https://docs.mattermost.com/upgrade/upgrading-mattermost-server.html\n\n```\nOLD_VERSION=\"6.1.0\"\nNEW_VERSION=\"8.1.2\"\n\n\n  971  wget https://releases.mattermost.com/8.1.2/mattermost-8.1.2-linux-amd64.tar.gz\n  976  tar -zxf mattermost-8.1.2-linux-amd64.tar.gz --transform='s,^[^/]\\+,\\0-8.1.2,'\n\n\n  985  kill $(pidof mattermost)\n  986  pidof mattermost\n\n  989  cd mattermost-6.1.0/\n  990  rsync -av mattermost-6.1.0/config/ mattermost-8.1.2/config/\n  991  rsync -av mattermost-6.1.0/data/   mattermost-8.1.2/data/\n  992  rsync -av mattermost-6.1.0/data/   mattermost-8.1.2/data/\n\n  996  rm mattermost\n  997  ln -s mattermost-8.1.2 mattermost\n\n  999  bash -x ./mattermost.sh\n 1002  tail -f mattermost/mattermost.log\n\n```\n\n\n## Upgrade Cleanup\n\nUse this to find duplicate files in the old directory.\nThen use perl to cleanup and generate some rm commands.\n\n```\ndiff -qrs ./new ./old \u003e same.txt\nperl -e '($f1, $f2) = m/Files (.+) and (.+) are identical/; print \"rm \\\"$f2\\\"\\n\";' -n ./same.txt \u003e rm-same.sh\n```\n\n## Integrate\n\n- https://developers.mattermost.com/integrate/reference/server/server-reference/\n\nOur integration uses some PHP scripts to boot-strap the authentication from our universe.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenthc%2Fchat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenthc%2Fchat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenthc%2Fchat/lists"}