summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/deployment/gecloudpad/default.nix
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2020-05-25 16:07:42 +0200
committerlassulus <lassulus@lassul.us>2020-05-25 16:07:42 +0200
commit6c8210f93ae6715cbf5aa2adfef8bfd6bfc908b2 (patch)
treef4f87d2212f9c3f628c7ed6b5f652e323642fd52 /makefu/2configs/deployment/gecloudpad/default.nix
parentd8386001a04b081e5779386b911cf7d4e9fd30e0 (diff)
parent4ba18c6d2a442834e79b5526eff0aa2c5f8398e8 (diff)
Merge remote-tracking branch 'gum/master'
Diffstat (limited to 'makefu/2configs/deployment/gecloudpad/default.nix')
-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}"];
};
};
};