17 lines
584 B
Plaintext
17 lines
584 B
Plaintext
# nginx site for mediator. Installed by setup-server.sh to
|
|
# /etc/nginx/sites-available/mediator with the real domain substituted.
|
|
# For HTTPS run `certbot --nginx -d <domain>` afterwards; certbot rewrites
|
|
# this file to add the TLS server block and the HTTP->HTTPS redirect.
|
|
server {
|
|
listen 80;
|
|
listen [::]:80;
|
|
server_name mediator.example.com;
|
|
|
|
location / {
|
|
proxy_pass http://127.0.0.1:8080;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
}
|
|
}
|