nginx.conf.tmpl (499B)
1 server { 2 listen 443 ssl; 3 4 ssl_certificate /etc/letsencrypt/live/ampache.in0rdr.ch/fullchain.pem; 5 ssl_certificate_key /etc/letsencrypt/live/ampache.in0rdr.ch/privkey.pem; 6 7 location / { 8 proxy_pass http://{{ env "NOMAD_ADDR_ampache" }}; 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 }