default.j2 499 B

123456789101112131415161718192021
  1. server {
  2. listen 80 default_server;
  3. listen [::]:80 default_server;
  4. server_name {{inventory_hostname_short}}.{{freifunk.domain_short}} karte.freifunk-dortmund.de;
  5. location /.well-known/acme-challenge {
  6. root /var/www/letsencrypt;
  7. try_files $uri $uri/ =404;
  8. }
  9. location /nginx_status {
  10. stub_status on;
  11. access_log off;
  12. allow 127.0.0.1;
  13. deny all;
  14. }
  15. location / {
  16. return 301 https://$server_name$request_uri;
  17. }
  18. }