nomad

HCL and Docker files for Nomad deployments
git clone https://git.in0rdr.ch/nomad.git
Log | Files | Refs | Pull requests

nginx.conf.tmpl (516B)


      1 server {
      2     listen               {{ env "NOMAD_PORT_https" }} ssl;
      3 
      4     ssl_certificate      /etc/letsencrypt/live/write.in0rdr.ch/fullchain.pem;
      5     ssl_certificate_key  /etc/letsencrypt/live/write.in0rdr.ch/privkey.pem;
      6 
      7     location / {
      8         proxy_pass       http://{{ env "NOMAD_ADDR_web" }};
      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 }