forked from linux/WebHosting
49e472c099
the client_max_body_size in server block is obviously not sufficient - I put it also in the location block - please pull and restart the container Reviewed-on: linux/WebHosting#48 Reviewed-by: buchel_k <konrad.bucheli@psi.ch> Co-authored-by: flechsig <uwe.flechsig@psi.ch> Co-committed-by: flechsig <uwe.flechsig@psi.ch>
29 lines
784 B
Plaintext
29 lines
784 B
Plaintext
# opticswiki conf for nginx
|
|
|
|
server {
|
|
listen 80;
|
|
client_max_body_size 20M;
|
|
server_name opticswiki.psi.ch;
|
|
return 301 https://$host$request_uri;
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl;
|
|
client_max_body_size 20M;
|
|
server_name opticswiki.psi.ch;
|
|
|
|
ssl_certificate /etc/nginx/certs/opticswiki.psi.ch.crt;
|
|
ssl_certificate_key /etc/nginx/private/opticswiki.psi.ch.key;
|
|
|
|
location / {
|
|
client_max_body_size 20M;
|
|
proxy_pass http://opticswiki:80;
|
|
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;
|
|
proxy_set_header Cookie $http_cookie;
|
|
proxy_set_header Authorization $http_authorization;
|
|
}
|
|
}
|