diff --git a/Readme.md b/Readme.md index fb9d490..c79a7f8 100644 --- a/Readme.md +++ b/Readme.md @@ -84,7 +84,8 @@ SECRET_KEY="" REDIS_HOST="127.0.0.1" EMAIL_URL="smtp://glitchtip@yourdomain.net" DEFAULT_FROM_EMAIL="glitchtip@yourdomain.net" -GLITCHTIP_DOMAIN="http://yourdomain.net" +GLITCHTIP_DOMAIN="http://your.domain.tld" +DEBUG="TRUE" ``` @@ -95,13 +96,15 @@ export $(cat .env | xargs) ./manage.py migrate ``` -### collect static +#### collect static ```shell -ln -s /opt/glitchtip/glitchtip-frontend/dist/glitchtip-frontend/ dist +ln -s /opt/glitchtip/glitchtip-frontend/dist/glitchtip-frontend/browser dist mkdir /opt/glitchtip/glitchtip-backend/{static,media} ./manage.py collectstatic ``` +### services + #### gunicorn ```shell @@ -115,6 +118,9 @@ bind = "unix:/opt/glitchtip/runtime/socket" proc_name = "glitchtip" worker_tmp_dir = "/dev/shm" workers = 3 +accesslog = "/opt/glitchtip/gunicorn_access.log" +errorlog = "/opt/glitchtip/gunicorn_error.log" +loglevel = "debug" ``` #### systemd service @@ -222,6 +228,15 @@ server { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; } + + #location / { + # proxy_pass http://unix:/opt/glitchtip/runtime/socket; + # proxy_set_header Host $host; + # proxy_set_header X-Real-IP $remote_addr; + # proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + # proxy_set_header X-Forwarded-Proto $scheme; + #} + } ``` @@ -232,6 +247,8 @@ nginx -t systemctl restart nginx ``` +## Celery + ## sources - https://glitchtip.com/documentation/install#installing-without-docker