forked from linux/WebHosting
20 lines
469 B
Plaintext
20 lines
469 B
Plaintext
server {
|
|
listen 80;
|
|
server_name swiss-ecargo-api-test.psi.ch;
|
|
return 301 https://$host$request_uri;
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl;
|
|
server_name swiss-ecargo-api-test.psi.ch;
|
|
|
|
|
|
location / {
|
|
proxy_pass http://swiss-ecargo:8000;
|
|
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;
|
|
}
|
|
}
|