diff options
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | nginx.conf | 2 | ||||
-rwxr-xr-x | nginx.sh | 7 |
3 files changed, 11 insertions, 2 deletions
@@ -1,6 +1,10 @@ +# unrpyc built code /unrpyc/renpy +/unrpyc/*.json.o /unrpyc/*.json /unrpyc/*.rpyc +# generated nginx conf +/nginx.gen.conf # ignore 'copyrighted' contents similar to emulators /www/scripts /www/dump @@ -36,7 +36,7 @@ http { default_type application/octet-stream; gzip on; - gzip_static on; + include nginx.gen.conf; gzip_types text/plain text/css application/javascript application/json; gzip_vary on; @@ -1,2 +1,7 @@ #!/bin/sh -exec nginx -p `dirname $0` -c nginx.conf +cd "`dirname $0`" +touch nginx.gen.conf +if nginx -V 2>&1 | grep -q -- --with-http_gzip_static_module; then + echo "gzip_static on" >> nginx.gen.conf +fi +exec nginx -p "$PWD" -c nginx.conf |