-
Notifications
You must be signed in to change notification settings - Fork 0
/
default
29 lines (23 loc) · 857 Bytes
/
default
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
server {
listen 80;
server_name www.yourdomain.com;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl http2;
server_name www.yourdomain.com;
# place your certificates in /etc/ssl/certs/ and /etc/ssl/private/ and uncomment the following two lines
# ssl_certificate /etc/ssl/certs/yourdomain.com.crt.pem;
# ssl_certificate_key /etc/ssl/private/yourdomain.key.pem;
ssl_protocols TLSv1.2 TLSv1.3;
ssl_ciphers HIGH:!aNULL:!MD5;
client_max_body_size 1000M; # Set the maximum upload size to 1000MB
location / {
proxy_pass http://localhost:5000; # Anpassen des Kestrel-Servers
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection keep-alive;
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}