diff options
-rw-r--r-- | servers/nixvps/configuration.nix | 50 |
1 files changed, 2 insertions, 48 deletions
diff --git a/servers/nixvps/configuration.nix b/servers/nixvps/configuration.nix index 6893dfe..0a51b68 100644 --- a/servers/nixvps/configuration.nix +++ b/servers/nixvps/configuration.nix @@ -5,7 +5,6 @@ let pkgs.callPackage /etc/nixos/envsubst-configuration.nix { }; config = rec { TLD = envsubstConfiguration.TLD; - cgitPort = "81"; openSSHPort = 23841; }; in { @@ -18,7 +17,6 @@ in { }; networking = { - useDHCP = false; interfaces.ens3.useDHCP = true; }; @@ -87,55 +85,11 @@ in { enableACME = true; root = "/srv/http/"; extraConfig = '' + # Allow <script type="module" src=""> 3rd-party HTML pages + add_header 'Access-Control-Allow-Origin' '*'; autoindex on; ''; }; - "git.${config.TLD}" = { - forceSSL = true; - enableACME = true; - extraConfig = '' - location = /favicon.ico { - alias ${pkgs.cgit}/cgit/favicon.ico; - } - location / { - # Allow <script type="module" src=""> 3rd-party HTML pages - add_header 'Access-Control-Allow-Origin' '*'; - - proxy_pass http://localhost:${config.cgitPort}; - } - ''; - }; - }; - }; - - lighttpd = { - enable = true; - port = pkgs.lib.toInt config.cgitPort; - cgit = { - enable = true; - subdir = ""; - configText = '' - enable-blame=1 - enable-commit-graph=1 - enable-follow-links=1 - enable-index-owner=0 - enable-log-filecount=1 - enable-log-linecount=1 - enable-html-serving=1 - root-desc=Patches welcome! - readme=:README.en.md - readme=:README.md - readme=:README - max-repodesc-length=120 - max-repo-count=999 - remove-suffix=1 - root-title=EuAndreh's repositories - snapshots=tar.xz - source-filter=${pkgs.cgit}/lib/cgit/filters/syntax-highlighting.py - about-filter=${pkgs.cgit}/lib/cgit/filters/about-formatting.sh - scan-path=/srv/http - mimetype.mjs=text/javascript - ''; }; }; |