run webserver for connectivity check

master
Niklas Yann Wettengel 3 years ago
parent 9ec1670a26
commit 140a04a8b5

@ -46,6 +46,8 @@ COMMIT
# dns # dns
-A INPUT -p tcp -m tcp --dport 53 -j ACCEPT -A INPUT -p tcp -m tcp --dport 53 -j ACCEPT
-A INPUT -p udp -m udp --dport 53 -j ACCEPT -A INPUT -p udp -m udp --dport 53 -j ACCEPT
# http
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
# ntp # ntp
-A INPUT -p udp -m udp --dport 123 -j ACCEPT -A INPUT -p udp -m udp --dport 123 -j ACCEPT
# fastd / wg # fastd / wg

@ -49,6 +49,8 @@ COMMIT
{% for site in sites %} {% for site in sites %}
-I INPUT -i bat{{ site.name }} -p udp --dport 67:68 --sport 67:68 -j ACCEPT -I INPUT -i bat{{ site.name }} -p udp --dport 67:68 --sport 67:68 -j ACCEPT
{% endfor %} {% endfor %}
# http
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
# ntp # ntp
-A INPUT -p udp -m udp --dport 123 -j ACCEPT -A INPUT -p udp -m udp --dport 123 -j ACCEPT
# fastd / wg # fastd / wg

@ -21,6 +21,38 @@ http {
charset UTF-8; charset UTF-8;
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
index index.html index.htm;
root /srv/http;
location / {
try_files $uri $uri/ =404;
autoindex on;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
location /nginx_status {
stub_status on;
access_log off;
allow 127.0.0.1;
allow ::1;
deny all;
}
location ~* \.(?:jpg|jpeg|gif|bmp|ico|png|css|js|swf|svg)$ {
expires 30d;
# Optional: Don't log access to assets
access_log off;
}
}
# Virtual Host Config # Virtual Host Config
include /etc/nginx/conf.d/*.conf; include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*; include /etc/nginx/sites-enabled/*;

@ -10,7 +10,7 @@
#- install_ssmtp #- install_ssmtp
- install_cronie - install_cronie
- install_php - install_php
#- install_nginx - install_nginx
- install_ntp - install_ntp
- install_haveged - install_haveged
- setup_batman - setup_batman

Loading…
Cancel
Save