summaryrefslogtreecommitdiffstats
path: root/lass
diff options
context:
space:
mode:
authorlassulus <git@lassul.us>2023-02-21 10:19:00 +0100
committerlassulus <git@lassul.us>2023-02-21 10:19:00 +0100
commit6624d3aab64adcc4f8e1bf8393859fc4769e5ed2 (patch)
treec1d1eb830ba5ddb19c47908c92c2874be7f1972b /lass
parent5bab00f73d27a96f6ce319040b69e4d83a81e52a (diff)
l neoprism.r: serve radio.lassul.us
Diffstat (limited to 'lass')
-rw-r--r--lass/1systems/neoprism/config.nix3
-rw-r--r--lass/2configs/services/radio/proxy.nix17
2 files changed, 20 insertions, 0 deletions
diff --git a/lass/1systems/neoprism/config.nix b/lass/1systems/neoprism/config.nix
index 4c9455356..8af63ee59 100644
--- a/lass/1systems/neoprism/config.nix
+++ b/lass/1systems/neoprism/config.nix
@@ -14,6 +14,9 @@
# other containers
<stockholm/lass/2configs/riot.nix>
+
+ # proxying of services
+ <stockholm/lass/2configs/services/radio/proxy.nix>
];
krebs.build.host = config.krebs.hosts.neoprism;
diff --git a/lass/2configs/services/radio/proxy.nix b/lass/2configs/services/radio/proxy.nix
new file mode 100644
index 000000000..49f8ade79
--- /dev/null
+++ b/lass/2configs/services/radio/proxy.nix
@@ -0,0 +1,17 @@
+{ config, pkgs, ... }:
+{
+ services.nginx.virtualHosts."radio.lassul.us" = {
+ enableACME = true;
+ addSSL = true;
+ locations."/" = {
+ # recommendedProxySettings = true;
+ proxyWebsockets = true;
+ proxyPass = "http://radio.r";
+ extraConfig = ''
+ proxy_set_header Host radio.r;
+ # get source ip for weather reports
+ proxy_set_header user-agent "$http_user_agent; client-ip=$remote_addr";
+ '';
+ };
+ };
+}