-
Notifications
You must be signed in to change notification settings - Fork 30
nginx
Mark Nottingham edited this page Dec 4, 2018
·
6 revisions
nginx is tested as packaged on Arch Linux.
Diff from vanilla nginx.conf
:
1c1
< user html;
---
> #user html;
34a35,37
> proxy_cache_path /srv/cache levels=1:2 keys_zone=my-cache:8m max_size=1000m inactive=600m;
> proxy_temp_path /srv/cache/tmp;
>
36,37c39
< listen 80;
< server_name localhost;
---
> listen 81;
44,48c46,49
< root /usr/share/nginx/html;
< index index.html index.htm;
< modsecurity_rules_file /etc/nginx/modsecurity_includes.conf;
< add_header Content-Security-Policy foo;
<
---
> proxy_pass http://localhost:8080;
> proxy_cache my-cache;
> proxy_cache_valid 200 302 60m;
> proxy_cache_valid 404 1m;