]> git.xolatile.top Git - gorillanest.git/commitdiff
Directories
authorEmil Williams <emilemilemil@cock.li>
Wed, 20 Aug 2025 23:59:06 +0000 (23:59 +0000)
committerEmil Williams <emilemilemil@cock.li>
Wed, 20 Aug 2025 23:59:06 +0000 (23:59 +0000)
Makefile
config.pl.default [new file with mode: 0644]
config.pl.example [deleted file]
gorillanest.nginx [deleted file]
lighttpd-cgi.conf [deleted file]
lighttpd-fcgi.conf [deleted file]
service/gorillanest.nginx [new file with mode: 0644]
service/lighttpd-cgi.conf [new file with mode: 0644]
service/lighttpd-fcgi.conf [new file with mode: 0644]

index de4db065448c3bf8c0eeee2c9208179ffaff8be9..f714ac4666a3609bb6f3a6394abf5d52224576d9 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,2 +1,2 @@
 serve-dev:
-       lighttpd -D -f ./lighttpd-cgi.conf
+       lighttpd -D -f ./service/lighttpd-cgi.conf
diff --git a/config.pl.default b/config.pl.default
new file mode 100644 (file)
index 0000000..c6becdf
--- /dev/null
@@ -0,0 +1,7 @@
+# always assume anything to do with files is from project root
+use constant LOG_FILE => '/tmp/gorillanest.log';
+use constant GIT_ROOT => 'git'; # directory containing all browsable $users/$repositories
+use constant DB_FILE => 'gorillanest.sqlite3'; # sqlite3 database file location
+use constant TEMPLATE_ROOT => 'template'; # template directory
+use constant USER_REPOSITORY => qr{^/([a-zA-Z0-9_.]+)(?:/([a-zA-Z0-9_.]+))?}; # $1 = username, $2 = repository fullname
+1;
diff --git a/config.pl.example b/config.pl.example
deleted file mode 100644 (file)
index c6becdf..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-# always assume anything to do with files is from project root
-use constant LOG_FILE => '/tmp/gorillanest.log';
-use constant GIT_ROOT => 'git'; # directory containing all browsable $users/$repositories
-use constant DB_FILE => 'gorillanest.sqlite3'; # sqlite3 database file location
-use constant TEMPLATE_ROOT => 'template'; # template directory
-use constant USER_REPOSITORY => qr{^/([a-zA-Z0-9_.]+)(?:/([a-zA-Z0-9_.]+))?}; # $1 = username, $2 = repository fullname
-1;
diff --git a/gorillanest.nginx b/gorillanest.nginx
deleted file mode 100644 (file)
index 67156c7..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-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/lighttpd-cgi.conf b/lighttpd-cgi.conf
deleted file mode 100644 (file)
index 24df494..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-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/lighttpd-fcgi.conf b/lighttpd-fcgi.conf
deleted file mode 100644 (file)
index a9cbb25..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-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
diff --git a/service/gorillanest.nginx b/service/gorillanest.nginx
new file mode 100644 (file)
index 0000000..67156c7
--- /dev/null
@@ -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 (file)
index 0000000..24df494
--- /dev/null
@@ -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 (file)
index 0000000..a9cbb25
--- /dev/null
@@ -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