diff options
Diffstat (limited to 'web/etc')
-rw-r--r-- | web/etc/nginx/default.conf | 10 | ||||
-rw-r--r-- | web/etc/varnish/nms.vcl | 10 |
2 files changed, 10 insertions, 10 deletions
diff --git a/web/etc/nginx/default.conf b/web/etc/nginx/default.conf index 4335774..80fc4f3 100644 --- a/web/etc/nginx/default.conf +++ b/web/etc/nginx/default.conf @@ -156,8 +156,7 @@ server { ssl_stapling on; ssl_stapling_verify on; root /var/www/stream/; -# index index.pl index.html; - index index.pl index.py index.html; + index index.pl index.html; location /hls { types { #application/vnd.apple.mpegurl m3u8; @@ -192,13 +191,6 @@ server { allow 2a06:5841:151a::/64; deny all; } - location ~ \.py { - try_files $uri =404; - fastcgi_pass unix:/tmp/index-fcgi.sock; - fastcgi_index index.py; - fastcgi_param PATH_INFO $fastcgi_path_info; - include fastcgi_params; - } location ~ \.pl|cgi$ { try_files $uri =404; gzip off; diff --git a/web/etc/varnish/nms.vcl b/web/etc/varnish/nms.vcl index 53a9444..8ac8b46 100644 --- a/web/etc/varnish/nms.vcl +++ b/web/etc/varnish/nms.vcl @@ -8,9 +8,17 @@ backend default { .host = "127.0.0.1"; .port = "8080"; } - +acl yoda { + "185.110.148.11"; + "127.0.0.1"; + "::1"; + "2a06:5841:1337::11"; +} # Sort magi. sub vcl_recv { + if (client.ip !~ yoda) { + return (synth(418,"GET RECKT")); + } if (req.url ~ "^/where" || req.url ~ "^/location") { set req.url = "/api/public/location"; } |