nginx.conf.tmpl (515B)
1 server { 2 listen {{ env "NOMAD_PORT_https" }} ssl; 3 4 ssl_certificate /etc/letsencrypt/live/rss.in0rdr.ch/fullchain.pem; 5 ssl_certificate_key /etc/letsencrypt/live/rss.in0rdr.ch/privkey.pem; 6 7 location / { 8 proxy_pass http://{{ env "NOMAD_ADDR_server" }}; 9 proxy_set_header Host $host; 10 proxy_set_header X-Real-IP $remote_addr; 11 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 12 proxy_set_header X-Forwarded-Proto $scheme; 13 } 14 }