l neoprism.r: serve radio.lassul.us

This commit is contained in:
lassulus 2023-02-21 10:19:00 +01:00
parent 5bab00f73d
commit 6624d3aab6
2 changed files with 20 additions and 0 deletions

View File

@ -14,6 +14,9 @@
# other containers # other containers
<stockholm/lass/2configs/riot.nix> <stockholm/lass/2configs/riot.nix>
# proxying of services
<stockholm/lass/2configs/services/radio/proxy.nix>
]; ];
krebs.build.host = config.krebs.hosts.neoprism; krebs.build.host = config.krebs.hosts.neoprism;

View File

@ -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";
'';
};
};
}