diff options
| author | EuAndreh <eu@euandre.org> | 2020-08-23 07:41:15 -0300 |
|---|---|---|
| committer | EuAndreh <eu@euandre.org> | 2020-08-23 07:41:15 -0300 |
| commit | 80000d43125203d927f79993970d78795ebd4eb0 (patch) | |
| tree | 47d379f76c08ad67dd8f13fe2c604399e4adc7c3 /vps-configuration.env.nix | |
| parent | Serve favicon from repo in cgit (diff) | |
| download | server-80000d43125203d927f79993970d78795ebd4eb0.tar.gz server-80000d43125203d927f79993970d78795ebd4eb0.tar.xz | |
Add favicon to conversejs page
Diffstat (limited to 'vps-configuration.env.nix')
| -rw-r--r-- | vps-configuration.env.nix | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/vps-configuration.env.nix b/vps-configuration.env.nix index 3f99e1a..8fca172 100644 --- a/vps-configuration.env.nix +++ b/vps-configuration.env.nix @@ -134,19 +134,21 @@ in { location = / { return 301 master/; } - root = ${envsubstConfiguration.staticRoot}/songbooks/; + root ${envsubstConfiguration.staticRoot}/songbooks/; ''; }; "${envsubstConfiguration.prosodyTLD}" = { forceSSL = true; enableACME = true; serverAliases = [ envsubstConfiguration.prosodyMUCTLD ]; - locations = { - "/" = { - proxyPass = - "http://localhost:${envsubstConfiguration.prosodyHTTPPort}/conversejs"; - }; - }; + extraConfig = '' + location = /favicon.ico { + alias ${envsubstConfiguration.dataRoot}/favicons/conversejs.ico; + } + location / { + proxy_pass http://localhost:${envsubstConfiguration.prosodyHTTPPort}/conversejs; + } + ''; }; }; }; |
