This repository has been archived on 2021-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
2021-05-08 16:26:32 +00:00
|
|
|
|
|
|
|
user www-data;
|
|
|
|
|
|
|
|
events {
|
|
|
|
worker_connections 768;
|
|
|
|
}
|
|
|
|
|
|
|
|
http {
|
|
|
|
upstream webuwsgi {
|
2021-05-16 13:02:25 +00:00
|
|
|
server {{ env "STACK_NAME" }}_web:8080;
|
2021-05-08 16:26:32 +00:00
|
|
|
}
|
|
|
|
|
2021-05-14 15:50:28 +00:00
|
|
|
include /etc/nginx/mime.types;
|
|
|
|
|
2021-05-14 14:59:40 +00:00
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
server_name {{ env "DOMAIN" }};
|
2021-05-08 16:26:32 +00:00
|
|
|
|
2021-05-14 14:59:40 +00:00
|
|
|
location / {
|
|
|
|
uwsgi_pass webuwsgi;
|
|
|
|
include uwsgi_params;
|
|
|
|
uwsgi_read_timeout 300;
|
|
|
|
}
|
2021-05-08 16:26:32 +00:00
|
|
|
|
2021-05-14 14:59:40 +00:00
|
|
|
location /static/ {
|
2021-05-14 15:48:37 +00:00
|
|
|
alias /opt/mailman-web-data/static/;
|
2021-05-14 15:45:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
location /static/favicon.ico {
|
|
|
|
alias /opt/mailman-web-data/static/postorius/img/favicon.ico;
|
2021-05-14 14:59:40 +00:00
|
|
|
}
|
2021-05-08 16:26:32 +00:00
|
|
|
}
|
|
|
|
}
|