forked from linux/WebHosting
25 lines
633 B
Plaintext
25 lines
633 B
Plaintext
# opticswiki conf for nginx
|
|
# cloned from gfa-status-test.conf
|
|
|
|
server {
|
|
listen 80;
|
|
server_name opticswiki.psi.ch;
|
|
return 301 https://$host$request_uri;
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl;
|
|
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 / {
|
|
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;
|
|
}
|
|
}
|