2018-10-15 18:25:30 +02:00
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
listen [::]:80;
|
|
|
|
|
|
|
|
server_name {{ dss_domain }};
|
|
|
|
|
|
|
|
location /.well-known/acme-challenge {
|
|
|
|
default_type "text/plain";
|
|
|
|
alias /var/www/acme-challenge;
|
|
|
|
}
|
|
|
|
|
|
|
|
location / {
|
|
|
|
return 301 https://{{ dss_domain }}$request_uri;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
server {
|
|
|
|
listen 443 ssl http2;
|
|
|
|
listen [::]:443 ssl http2;
|
|
|
|
|
|
|
|
server_name {{ dss_domain }};
|
|
|
|
|
2019-05-13 20:22:02 +02:00
|
|
|
ssl_certificate_key /etc/nginx/ssl/{{ dss_domain }}.key;
|
|
|
|
ssl_certificate /etc/nginx/ssl/{{ dss_domain }}.crt;
|
2018-10-15 18:25:30 +02:00
|
|
|
|
|
|
|
location / {
|
|
|
|
uwsgi_pass 127.0.0.1:{{ dss_uwsgi_port }};
|
|
|
|
include uwsgi_params;
|
|
|
|
}
|
|
|
|
|
|
|
|
location /static {
|
|
|
|
root /opt/bk-dss;
|
|
|
|
}
|
|
|
|
}
|