34 lines
528 B
Cheetah
34 lines
528 B
Cheetah
|
|
user www-data;
|
|
|
|
events {
|
|
worker_connections 768;
|
|
}
|
|
|
|
http {
|
|
upstream webuwsgi {
|
|
server {{ env "STACK_NAME" }}_web:8080;
|
|
}
|
|
|
|
include /etc/nginx/mime.types;
|
|
|
|
server {
|
|
listen 80;
|
|
server_name {{ env "DOMAIN" }};
|
|
|
|
location / {
|
|
uwsgi_pass webuwsgi;
|
|
include uwsgi_params;
|
|
uwsgi_read_timeout 300;
|
|
}
|
|
|
|
location /static/ {
|
|
alias /opt/mailman-web-data/static/;
|
|
}
|
|
|
|
location /static/favicon.ico {
|
|
alias /opt/mailman-web-data/static/postorius/img/favicon.ico;
|
|
}
|
|
}
|
|
}
|