forked from linux/WebHosting
07b38b10a9
Signed-off-by: Basil Bruhn <basil.bruhn@psi.ch>
22 lines
573 B
Plaintext
22 lines
573 B
Plaintext
server {
|
|
listen 80;
|
|
server_name saparchive.psi.ch;
|
|
return 301 https://$host$request_uri;
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl;
|
|
server_name saparchive.psi.ch;
|
|
|
|
ssl_certificate /etc/nginx/certs/saparchive.psi.ch.crt;
|
|
ssl_certificate_key /etc/nginx/private/saparchive.psi.ch.key;
|
|
|
|
location / {
|
|
proxy_pass http://tiacore-prod:8080;
|
|
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;
|
|
}
|
|
}
|