42 lines
1023 B
Plaintext
Executable File
42 lines
1023 B
Plaintext
Executable File
server {
|
|
listen 80;
|
|
listen [::]:80;
|
|
server_name wtc.dev.waiswuaschd.de;
|
|
|
|
location /.well-known/acme-challenge/ {
|
|
root /var/www/html;
|
|
}
|
|
|
|
location / {
|
|
return 301 https://$host$request_uri;
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl;
|
|
listen [::]:443 ssl;
|
|
http2 on;
|
|
server_name wtc.dev.waiswuaschd.de;
|
|
|
|
client_max_body_size 50M;
|
|
|
|
ssl_certificate /etc/nginx/ssl/wtc.dev.waiswuaschd.de/fullchain.pem;
|
|
ssl_certificate_key /etc/nginx/ssl/wtc.dev.waiswuaschd.de/key.pem;
|
|
|
|
ssl_protocols TLSv1.2 TLSv1.3;
|
|
ssl_ciphers HIGH:!aNULL:!MD5;
|
|
|
|
location /static/ {
|
|
alias /home/maxi/Projekt/wtc.waiswuaschd.de/app/static/;
|
|
add_header Cache-Control "no-cache, must-revalidate";
|
|
}
|
|
|
|
location / {
|
|
proxy_pass http://127.0.0.1:8003;
|
|
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;
|
|
}
|
|
}
|