diff options
Diffstat (limited to 'service')
| -rw-r--r-- | service/gorillanest.nginx | 22 | ||||
| -rw-r--r-- | service/lighttpd-cgi.conf | 20 | ||||
| -rw-r--r-- | service/lighttpd-fcgi.conf | 25 |
3 files changed, 67 insertions, 0 deletions
diff --git a/service/gorillanest.nginx b/service/gorillanest.nginx new file mode 100644 index 0000000..67156c7 --- /dev/null +++ b/service/gorillanest.nginx @@ -0,0 +1,22 @@ +server { + server_name gorillanest.example.com; + add_header Content-Security-Policy "default-src 'self';" always; + root /var/www/gorillanest; + + location = /gorillanest { + add_header Cache-Control "max-age=0; must-revalidate; no-cache"; + include fastcgi_params; + fastcgi_pass unix:/run/fcgiwrap.socket; + } + + location ~ \.(jpg|png|avif|css)$ { + root /var/www/gorillanest/static; + } + + rewrite ^/ /gorillanest; +} + +# Notice: AIDS +# I changed the deployment copy in some critical areas +# will update this file when things are more ratified server-side, and remove this notice +# P.S. You VILL constantly backport gorillians of minor improvement tweaks diff --git a/service/lighttpd-cgi.conf b/service/lighttpd-cgi.conf new file mode 100644 index 0000000..24df494 --- /dev/null +++ b/service/lighttpd-cgi.conf @@ -0,0 +1,20 @@ +server.modules = ( + "mod_cgi", + "mod_rewrite", + "mod_setenv" +) + +server.document-root = var.CWD +server.port = 5050 + +url.rewrite-once = ( + "/" => "/gorillanest.pl.cgi" +) + +setenv.add-environment = ( + "PERL5LIB" => env.PERL5LIB +) + +cgi.assign = ( + ".pl.cgi" => "/usr/bin/perl" +) diff --git a/service/lighttpd-fcgi.conf b/service/lighttpd-fcgi.conf new file mode 100644 index 0000000..a9cbb25 --- /dev/null +++ b/service/lighttpd-fcgi.conf @@ -0,0 +1,25 @@ +server.modules = ( + "mod_fastcgi", + "mod_rewrite", + "mod_setenv" +) + +server.document-root = var.CWD +server.port = 5050 + +url.rewrite-once = ( + "/" => "/gorillanest" +) + +setenv.add-environment = ( + "PERL5LIB" => env.PERL5LIB +) + +fastcgi.server = ( + "/gorillanest" => (( + "bin-path" => "gorillanest.pl.fcgi", + "socket" => "gorillanest.sock", + )) +) + +fastcgi.debug = 1 |
