summaryrefslogtreecommitdiffstats
path: root/lass/2configs/services
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2023-04-02 18:42:50 +0200
committermakefu <github@syntax-fehler.de>2023-04-02 18:42:50 +0200
commit7239ec83c5531fa100d1863fec9d82033d13ad34 (patch)
tree1cfde19ffaf06d44a5fd30d7fc0ca2eaad2d4ad2 /lass/2configs/services
parentd335011fce054bebc0e429ea10bccabaf898d2b2 (diff)
parentc4bf35d8e13d1258fcbacd118a0fc75197b9fe7e (diff)
Merge remote-tracking branch 'lassul.us/master'
Diffstat (limited to 'lass/2configs/services')
-rw-r--r--lass/2configs/services/coms/proxy.nix1
-rw-r--r--lass/2configs/services/git/default.nix11
-rw-r--r--lass/2configs/services/git/proxy.nix13
3 files changed, 25 insertions, 0 deletions
diff --git a/lass/2configs/services/coms/proxy.nix b/lass/2configs/services/coms/proxy.nix
index 57e132151..e8555f9b7 100644
--- a/lass/2configs/services/coms/proxy.nix
+++ b/lass/2configs/services/coms/proxy.nix
@@ -16,6 +16,7 @@ in
services.nginx.streamConfig = ''
${lib.concatMapStringsSep "\n" (port: ''
server {
+ listen [::]:${toString port};
listen ${toString port};
proxy_pass ${target}:${toString port};
}
diff --git a/lass/2configs/services/git/default.nix b/lass/2configs/services/git/default.nix
new file mode 100644
index 000000000..096f73c03
--- /dev/null
+++ b/lass/2configs/services/git/default.nix
@@ -0,0 +1,11 @@
+{ config, lib, pkgs, ... }:
+{
+ imports = [
+ ../../git.nix
+ ];
+ services.nginx.virtualHosts."cgit.lassul.us" = {
+ enableACME = true;
+ addSSL = true;
+ locations = config.services.nginx.virtualHosts.cgit.locations;
+ };
+}
diff --git a/lass/2configs/services/git/proxy.nix b/lass/2configs/services/git/proxy.nix
new file mode 100644
index 000000000..cb05c3f6c
--- /dev/null
+++ b/lass/2configs/services/git/proxy.nix
@@ -0,0 +1,13 @@
+{ config, pkgs, ... }:
+{
+ services.nginx.virtualHosts."cgit.lassul.us" = {
+ forceSSL = true;
+ enableACME = true;
+ acmeFallbackHost = "orange.r";
+ locations."/" = {
+ proxyPass = "http://orange.r";
+ proxyWebsockets = true;
+ recommendedProxySettings = true;
+ };
+ };
+}