From fc6764b478958a652ccbf06a6dafa4dda083ec84 Mon Sep 17 00:00:00 2001 From: Aaron Honeycutt Date: Mon, 23 Jan 2023 17:44:51 +0000 Subject: [PATCH] Not working currently --- dev/ngnix-owncast.nix | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 dev/ngnix-owncast.nix diff --git a/dev/ngnix-owncast.nix b/dev/ngnix-owncast.nix new file mode 100644 index 0000000..0a48c51 --- /dev/null +++ b/dev/ngnix-owncast.nix @@ -0,0 +1,23 @@ + virtualHosts = { + "cast.ahoneybun.net" = { + forceSSL = true; + enableACME = true; + locations."/" = { + proxyPass = "http://127.0.0.1:8080"; +# proxyWebsockets = true; + + extraConfig = '' + + proxy_set_header Host $host; + proxy_set_header X-Forwarded-Host $host; + proxy_set_header X-Forwarded-Server $host; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection $connection_upgrade; + ''; + }; + }; + };