41 lines
984 B
Plaintext
41 lines
984 B
Plaintext
|
|
server {
|
||
|
|
client_max_body_size 64M;
|
||
|
|
|
||
|
|
listen 80;
|
||
|
|
server_name {{ domain_documenso }};
|
||
|
|
|
||
|
|
location / {
|
||
|
|
return 301 https://$host$request_uri;
|
||
|
|
}
|
||
|
|
|
||
|
|
location ^~ /.well-known/acme-challenge/ {
|
||
|
|
alias /var/www/html/.well-known/acme-challenge/;
|
||
|
|
default_type "text/plain";
|
||
|
|
allow all;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
server {
|
||
|
|
client_max_body_size 64M;
|
||
|
|
|
||
|
|
listen 443 ssl http2;
|
||
|
|
server_name {{ domain_documenso }};
|
||
|
|
|
||
|
|
ssl_certificate /etc/nginx/placeholder.crt;
|
||
|
|
ssl_certificate_key /etc/nginx/placeholder.key;
|
||
|
|
|
||
|
|
location / {
|
||
|
|
proxy_pass http://127.0.0.1:3020;
|
||
|
|
proxy_set_header Host $host;
|
||
|
|
proxy_set_header X-Real-IP $remote_addr;
|
||
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||
|
|
}
|
||
|
|
|
||
|
|
location ^~ /.well-known/acme-challenge/ {
|
||
|
|
alias /var/www/html/.well-known/acme-challenge/;
|
||
|
|
default_type "text/plain";
|
||
|
|
allow all;
|
||
|
|
}
|
||
|
|
}
|