summaryrefslogtreecommitdiff
path: root/hostnix/elmo
diff options
context:
space:
mode:
Diffstat (limited to 'hostnix/elmo')
-rw-r--r--hostnix/elmo/cgithub.nix30
1 files changed, 2 insertions, 28 deletions
diff --git a/hostnix/elmo/cgithub.nix b/hostnix/elmo/cgithub.nix
index cae05c6..ec7c162 100644
--- a/hostnix/elmo/cgithub.nix
+++ b/hostnix/elmo/cgithub.nix
@@ -1,37 +1,11 @@
-{ pkgs, ... }:
+{ ... }:
{
- systemd.tmpfiles.rules = [
- "d /opt/cgithub 0755 joe users"
- ];
-
- systemd.sockets.cgithub = {
- wantedBy = [ "sockets.target" ];
- socketConfig = {
- ListenStream = "/run/cgithub/socket";
- SocketGroup = "nginx";
- SocketMode = "0660";
- };
- };
-
- systemd.services.cgithub = {
- requires = [ "cgithub.socket" ];
- after = [ "cgithub.socket" ];
- serviceConfig = {
- Type = "exec";
- DynamicUser = true;
- WorkingDirectory = "/opt/cgithub";
- };
- script = ''
- exec ${pkgs.nodejs-slim_24}/bin/node dist/build/index.js
- '';
- };
-
services.nginx.virtualHosts."fluffy-kitten.elmo.mou.fo" = {
useACMEHost = "elmo.mou.fo";
forceSSL = true;
locations."/" = {
- proxyPass = "http://unix:/run/cgithub/socket";
+ return = "301 https://cgithub.jmou.workers.dev$request_uri";
};
};
}