added gunicorn service socket and nginx config.

This commit is contained in:
Alexander Schulz
2024-08-30 23:40:20 +02:00
parent cf942a1a7b
commit cd3eb0e07c
3 changed files with 47 additions and 0 deletions

20
testapp.nginx Normal file
View File

@ -0,0 +1,20 @@
#copy to /etc/nginx/sites-available
#link to: ln -s /etc/nginx/sites-available/testapp /etc/nginx/sites-enabled/
#nginx -t
# sytemctl restart nginx
server {
listen 80;
server_name develop.artemisneo.com;
location = /favicon.ico { access_log off; log_not_found off; }
location /static/ {
root /root/appdirectory/assets;
}
location / {
include proxy_params;
proxy_pass http://unix:/run/gunicorn.sock;
}
}