aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-07-28 15:57:52 -0300
committerEuAndreh <eu@euandre.org>2021-07-28 15:57:52 -0300
commitd08f1fa430590ea681e47d8ec7e7fff09ee97609 (patch)
treeeb2a1f1d8128bf272780c722a90e332609ca3350
parentTODOs.md: Add #task-ef646036-9be7-5669-ac12-3f6be1c71bce (diff)
downloadtoph-d08f1fa430590ea681e47d8ec7e7fff09ee97609.tar.gz
toph-d08f1fa430590ea681e47d8ec7e7fff09ee97609.tar.xz
servers/nixvps/configuration.nix: Remove CGit configuration
-rw-r--r--servers/nixvps/configuration.nix50
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
- '';
};
};