diff options
| author | Mel <einebeere@gmail.com> | 2024-12-26 17:24:04 +0100 |
|---|---|---|
| committer | Mel <einebeere@gmail.com> | 2024-12-26 17:31:29 +0100 |
| commit | ce64e6e1990b62451acb3822b7ab914e16b122b6 (patch) | |
| tree | 3793d855dc49b849e82c919a36d4c376bf00f36f /services/akkoma | |
| parent | 98cdef36e124b0b5ae90021a92408bb7899660c2 (diff) | |
| download | network-ce64e6e1990b62451acb3822b7ab914e16b122b6.tar.zst network-ce64e6e1990b62451acb3822b7ab914e16b122b6.zip | |
Pull out web configuration from specific machine modules
Signed-off-by: Mel <einebeere@gmail.com>
Diffstat (limited to 'services/akkoma')
| -rw-r--r-- | services/akkoma/default.nix | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/services/akkoma/default.nix b/services/akkoma/default.nix index 939e9be..101d805 100644 --- a/services/akkoma/default.nix +++ b/services/akkoma/default.nix @@ -108,4 +108,18 @@ in entrypoint = "/bin/fedifetcher-entry.sh"; }; }; + + services.nginx.virtualHosts."soc.rnrd.eu" = { + forceSSL = true; + enableACME = true; + + locations."/" = { + proxyWebsockets = true; + proxyPass = "http://127.0.0.1:${toString akkomaLocalPort}"; + }; + + extraConfig = '' + access_log /var/log/nginx/akkoma.access.log json_combined; + ''; + }; } |
