mise en place package

This commit is contained in:
lbn
2026-03-08 08:26:43 +01:00
commit 38ff196192
9 changed files with 650 additions and 0 deletions

34
conf/nginx.conf Normal file
View File

@@ -0,0 +1,34 @@
location __PATH__/static/ {
# Service static files by nginx
# e.g.: /var/www/$app/static/
alias __INSTALL_DIR__/static/;
expires 30d;
}
location __PATH__/ {
# https://github.com/benoitc/gunicorn/blob/master/examples/nginx.conf
# this is needed if you have file import via upload enabled
client_max_body_size 100M;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Protocol $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Scheme $scheme;
# Sets `HTTP_YNH_USER` used in django_yunohost_integration
proxy_set_header Ynh-User $http_ynh_user;
proxy_read_timeout 30;
proxy_send_timeout 30;
proxy_connect_timeout 30;
proxy_redirect off;
proxy_pass http://127.0.0.1:__PORT__;
# Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc;
}