summaryrefslogtreecommitdiffstats
path: root/debian/local
diff options
context:
space:
mode:
authorKatharina Drexel <katharina.drexel@bfh.ch>2019-08-14 09:52:29 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2019-08-14 09:53:56 +0000
commit1fd5e7bce7c99083f31454b48190cb42227e5394 (patch)
tree0023ff0101e9aa7c6cc0b74a296a13c8b948b75c /debian/local
parenttypo fix in debian/rules: s/init/systemd/ (diff)
downloadnetdata-1fd5e7bce7c99083f31454b48190cb42227e5394.tar.xz
netdata-1fd5e7bce7c99083f31454b48190cb42227e5394.zip
adding package netdata-apache2
Signed-off-by: Katharina Drexel <katharina.drexel@bfh.ch> Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/local')
-rw-r--r--debian/local/apache2/netdata.conf21
1 files changed, 21 insertions, 0 deletions
diff --git a/debian/local/apache2/netdata.conf b/debian/local/apache2/netdata.conf
new file mode 100644
index 000000000..23080de6a
--- /dev/null
+++ b/debian/local/apache2/netdata.conf
@@ -0,0 +1,21 @@
+<IfModule mod_proxy.c>
+ ProxyRequests Off
+ ProxyPreserveHost On
+
+ ProxyPass /netdata http://localhost:19999 connectiontimeout=5 timeout=30 keepalive=on
+ ProxyPassReverse /netdata http://localhost:19999
+</IfModule>
+
+<IfModule mod_rewrite.c>
+ RewriteEngine On
+ ProxyRequests Off
+ ProxyPreserveHost On
+
+ RewriteRule ^/netdata$ %{HTTP_HOST}/netdata/ [L,R=301]
+</IfModule>
+
+<Location /netdata>
+ <IfModule mod_headers.c>
+ Header always set Content-Security-Policy "default-src 'unsafe-inline' http: 'self' 'unsafe-eval'; script-src 'unsafe-inline' http: 'self' 'unsafe-eval'; style-src http: 'self' 'unsafe-inline'"
+ </IfModule>
+</Location>