aboutsummaryrefslogtreecommitdiff
path: root/vps-configuration.env.nix
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2020-08-23 07:15:11 -0300
committerEuAndreh <eu@euandre.org>2020-08-23 07:15:11 -0300
commitffa42deab1068d341d091274892b242b14932c2a (patch)
treeb236d77890aa8f123e18b306277a661b17aed53d /vps-configuration.env.nix
parentRename data-folder-init systemd service (diff)
downloadtoph-ffa42deab1068d341d091274892b242b14932c2a.tar.gz
toph-ffa42deab1068d341d091274892b242b14932c2a.tar.xz
Serve favicon from repo in cgit
Diffstat (limited to 'vps-configuration.env.nix')
-rw-r--r--vps-configuration.env.nix13
1 files changed, 9 insertions, 4 deletions
diff --git a/vps-configuration.env.nix b/vps-configuration.env.nix
index 56f2c56..3f99e1a 100644
--- a/vps-configuration.env.nix
+++ b/vps-configuration.env.nix
@@ -108,9 +108,14 @@ in {
"${envsubstConfiguration.gitTLD}" = {
forceSSL = true;
enableACME = true;
- locations."/" = {
- proxyPass = "http://localhost:${envsubstConfiguration.gitPort}";
- };
+ extraConfig = ''
+ location = /favicon.ico {
+ alias ${envsubstConfiguration.dataRoot}/favicons/git.ico;
+ }
+ location / {
+ proxy_pass http://localhost:${envsubstConfiguration.gitPort};
+ }
+ '';
};
"${envsubstConfiguration.bonecoTLD}" = {
forceSSL = true;
@@ -125,11 +130,11 @@ in {
"${envsubstConfiguration.songbooksDocumentationTLD}" = {
forceSSL = true;
enableACME = true;
- root = "${envsubstConfiguration.staticRoot}/songbooks/";
extraConfig = ''
location = / {
return 301 master/;
}
+ root = ${envsubstConfiguration.staticRoot}/songbooks/;
'';
};
"${envsubstConfiguration.prosodyTLD}" = {