citadel

My dotfiles, scripts and nix configs
git clone git://jb55.com/citadel
Log | Files | Refs | README | LICENSE

pokemap.nix (576B)


      1 subdomain: port: ''
      2   server {
      3     listen 80;
      4     server_name ${subdomain}.jb55.com;
      5     root /www/jb55/public/maps;
      6 
      7     location /.well-known {
      8       try_files $uri $uri/ =404;
      9     }
     10 
     11     location / {
     12       return 301 https://${subdomain}.jb55.com$request_uri;
     13     }
     14   }
     15 
     16   server {
     17     listen 443;
     18     server_name ${subdomain}.jb55.com;
     19 
     20     ssl_certificate /etc/letsencrypt/live/${subdomain}.jb55.com/fullchain.pem;
     21     ssl_certificate_key /etc/letsencrypt/live/${subdomain}.jb55.com/privkey.pem;
     22 
     23     location / {
     24       proxy_pass http://localhost:${port};
     25     }
     26   }
     27 
     28 ''