summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/deployment/gecloudpad
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2020-05-02 23:09:54 +0200
committermakefu <github@syntax-fehler.de>2020-05-02 23:09:54 +0200
commitf58fd301fd4e60b9d43d04b9a86cb857cc786c92 (patch)
tree4ab338c1fbe61a96d2d8a77d0e849beacc77b366 /makefu/2configs/deployment/gecloudpad
parentf0f0bc51bf02b94894a5e64e1ea6e0536bdece92 (diff)
ma gecloudpad: use config parameters to set baseurl
Diffstat (limited to 'makefu/2configs/deployment/gecloudpad')
-rw-r--r--makefu/2configs/deployment/gecloudpad/default.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/makefu/2configs/deployment/gecloudpad/default.nix b/makefu/2configs/deployment/gecloudpad/default.nix
index e13ec6ae6..8b88626a3 100644
--- a/makefu/2configs/deployment/gecloudpad/default.nix
+++ b/makefu/2configs/deployment/gecloudpad/default.nix
@@ -4,12 +4,14 @@ let
wsgi-sock = "${workdir}/uwsgi-gecloudpad.sock";
workdir = config.services.uwsgi.runDir;
gecloudpad = pkgs.python3Packages.callPackage ./gecloudpad.nix {};
+ gecloudpad_settings = pkgs.writeText "gecloudpad_settings" ''
+ BASEURL = "https://etherpad.euer.krebsco.de"
+ '';
in {
services.uwsgi = {
enable = true;
user = "nginx";
- # runDir = "/var/lib/photostore";
plugins = [ "python3" ];
instance = {
type = "emperor";
@@ -18,6 +20,7 @@ in {
type = "normal";
pythonPackages = self: with self; [ gecloudpad ];
socket = wsgi-sock;
+ env = ["GECLOUDPAD_SETTINGS=${gecloudpad_settings}"];
};
};
};