l neoprism.r: serve radio.lassul.us
This commit is contained in:
parent
5bab00f73d
commit
6624d3aab6
@ -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;
|
||||||
|
17
lass/2configs/services/radio/proxy.nix
Normal file
17
lass/2configs/services/radio/proxy.nix
Normal 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";
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user