Add deployment scripts
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
# 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user