summaryrefslogtreecommitdiffstats
path: root/debian/local/apache2/netdata.conf
blob: c7f038700ac9d172844ad1fdc9fcd237a60cb64f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<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

	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>