diff --git a/files/firmware.conf.j2 b/files/firmware.conf.j2 new file mode 100644 index 0000000000000000000000000000000000000000..ae4edaec2956319286a21930995be1a9919d67d2 --- /dev/null +++ b/files/firmware.conf.j2 @@ -0,0 +1,29 @@ +server { + listen [::]:80; + listen 80; + server_name {{ server_name }}; + + access_log /var/log/nginx/firmware.freifunk.lu-access.log; + error_log /var/log/nginx/firmware.freifunk.lu-error.log; + + root {{ document_root }}; + + index index.html; + + location = /favicon.ico { + log_not_found off; + access_log off; + + } + + location = /robots.txt { + allow all; + log_not_found off; + access_log off; + } + + location / { + autoindex on; + try_files $uri $uri/ index.html =404; + } +}