summaryrefslogtreecommitdiffstats
path: root/lass
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2019-05-29 15:37:05 +0200
committerlassulus <lassulus@lassul.us>2019-05-29 15:54:14 +0200
commita5160c8d4f17fd9baf66aabcc8c5535e4f471a3e (patch)
treea462ca8d7acbccec1d4643ecb1636090bb5f5590 /lass
parent74d0821e3a1207952cf639ac24009e7533aeff17 (diff)
l radio: add correct hostname headers
Diffstat (limited to 'lass')
-rw-r--r--lass/2configs/radio.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/lass/2configs/radio.nix b/lass/2configs/radio.nix
index 88899c554..7960db564 100644
--- a/lass/2configs/radio.nix
+++ b/lass/2configs/radio.nix
@@ -97,7 +97,7 @@ in {
services.icecast = {
enable = true;
- hostname = "config.krebs.build.host.name";
+ hostname = "radio.lassul.us";
admin.password = admin-password;
extraConf = ''
<authentication>
@@ -218,6 +218,11 @@ in {
forceSSL = true;
enableACME = true;
locations."/".extraConfig = ''
+ proxy_set_header Host $host;
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ proxy_set_header X-Forwarded-Host $host;
+ proxy_set_header X-Forwarded-Server $host;
+ proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://localhost:8000;
'';
locations."/recent".extraConfig = ''