You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
870 B
37 lines
870 B
server {
|
|
server_name {{ babybuddy_domain }};
|
|
|
|
listen 80;
|
|
listen [::]:80;
|
|
|
|
location / {
|
|
return https://$server_name$request_uri;
|
|
}
|
|
}
|
|
|
|
|
|
server {
|
|
server_name {{ babybuddy_domain }};
|
|
|
|
listen 443 ssl http2;
|
|
listen [::]:443 ssl http2;
|
|
|
|
ssl_trusted_certificate /etc/letsencrypt/live/{{ babybuddy_domain }}/chain.pem;
|
|
ssl_certificate /etc/letsencrypt/live/{{ babybuddy_domain }}/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/{{ babybuddy_domain }}/privkey.pem;
|
|
|
|
ssl_stapling on;
|
|
ssl_stapling_verify on;
|
|
|
|
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "upgrade";
|
|
proxy_set_header Host $http_host;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
location / {
|
|
proxy_pass http://127.0.0.1:8000;
|
|
}
|
|
}
|