Repository navigation
Production Deployment Guide
These notes describe the files and runtime behavior at source revision 37f8db6. Review the limitations below before exposing the service. They are not a guarantee of production readiness.
- The inbound webhook endpoints have no application authentication. Restrict them at the reverse proxy or network boundary to trusted senders.
- The JSON store uses per-instance, in-process locks, not a shared lock across store instances or processes. Concurrent writes can lose updates even though individual file replacements are atomic. The included installer configures three Gunicorn workers; reducing workers reduces concurrency but does not guarantee safe writes. Back up the data and evaluate this risk before use.
- With email enabled, each application process starts an IMAP polling thread, but the thread calls Flask-context-dependent code without an application context. Reply ingestion is not reliable in this revision.
- The employee seed contains a known administrator password hash and
must_change_passwordis false. Replace the hash before starting an exposed service. Managers can also access the administrator password-reset route because of the global role bypass.
The following is a manual example for a fresh Linux installation with Python, Git, systemd, and a reverse proxy already installed. Use a dedicated runtime account, appropriate ownership, and an HTTPS hostname. Paths in the configuration are relative to the application working directory.
cd /var/www
git clone https://github.com/GoobyFRS/GoobyDesk.git
cd GoobyDesk
mkdir -p prod_data
cp example_data/example_dotenv .env
cp example_data/template_configuration.yml prod_data/configuration.yml
cp example_data/seed_employee.json prod_data/employee_auth.json
cp example_data/seed_tickets.json prod_data/tickets.json
cp example_data/seed_customers.json prod_data/customers.json
cp example_data/seed_changes.json prod_data/changes.json
cp example_data/seed_hr_file.json prod_data/hr_file.json
cp example_data/seed_serviceid.json prod_data/serviceid.json
python3 -m venv venv
venv/bin/pip install -r requirements.txtThese seed files contain sample records. Review them before use; preserve existing data instead of copying seeds over an existing installation. The core paths in prod_data/configuration.yml determine the actual files used.
Edit .env: set FLASKAPP_SECRET_KEY to a unique, unpredictable secret; remove or replace both sample Cloudflare Turnstile keys; and set EMAIL_PASSWORD if email is enabled. TAILSCALE_WEBHOOK_KEY appears in the example but the inbound endpoint does not validate it. Configure prod_data/configuration.yml, including a log file writable by the runtime user. See Webhooks for the discrepancy between the shipped webhook template and the sender's expected configuration.
Before starting the service, replace the admin0 record's password_hash in prod_data/employee_auth.json with a hash of a new, unique password. From the application root, generate a hash without putting the password in the shell history:
venv/bin/python -c 'from getpass import getpass; from local_handlers.utils import hash_password; print(hash_password(getpass("New administrator password: ")))'Copy the resulting hash into the JSON record, keeping the surrounding JSON valid. Protect .env, the data directory, and backups from unauthorized access. The application does not provide an enforced first-login password change.
An example systemd unit is included in example_data/goobydesk.service, and helper_scripts/first_time_setup.sh generates a different unit using 127.0.0.1:8000. Review either before use: replace $USER in the example unit with an actual account, create its log directories, and ensure the runtime user can read configuration and write data and logs. A systemd User=$USER setting does not automatically select your shell user.
If using the installer, inspect it first. It may clone into /var/www/GoobyDesk, change ownership, create files and a systemd unit, and enable the unit; it does not start the service or configure HTTPS. It only copies some seed files and suppresses some copy errors, so verify all configuration, permissions, and seed files afterward. The script's generated unit uses three workers, with the concurrency risk noted above.
Configure the reverse proxy to terminate HTTPS and forward to the chosen Gunicorn listener. The included example unit uses a Unix socket; the installer-generated unit uses TCP on 127.0.0.1:8000. Do not expose Gunicorn directly. Session cookies are marked secure, so HTTPS is required for normal browser login.
After configuring a unit, reload systemd, start it, and inspect its status and logs:
sudo systemctl daemon-reload
sudo systemctl enable --now goobydesk.service
sudo systemctl status goobydesk.service
sudo journalctl -u goobydesk.service -fBack up the JSON data and configuration, stop the service, update the source checkout and dependencies, review release changes and any required migrations, then restart and inspect logs. Do not overwrite existing data with seed files. Test the upgrade and restore procedure on a separate copy first.