ma gecloudpad: use config parameters to set baseurl
This commit is contained in:
parent
f0f0bc51bf
commit
f58fd301fd
@ -4,12 +4,14 @@ let
|
|||||||
wsgi-sock = "${workdir}/uwsgi-gecloudpad.sock";
|
wsgi-sock = "${workdir}/uwsgi-gecloudpad.sock";
|
||||||
workdir = config.services.uwsgi.runDir;
|
workdir = config.services.uwsgi.runDir;
|
||||||
gecloudpad = pkgs.python3Packages.callPackage ./gecloudpad.nix {};
|
gecloudpad = pkgs.python3Packages.callPackage ./gecloudpad.nix {};
|
||||||
|
gecloudpad_settings = pkgs.writeText "gecloudpad_settings" ''
|
||||||
|
BASEURL = "https://etherpad.euer.krebsco.de"
|
||||||
|
'';
|
||||||
in {
|
in {
|
||||||
|
|
||||||
services.uwsgi = {
|
services.uwsgi = {
|
||||||
enable = true;
|
enable = true;
|
||||||
user = "nginx";
|
user = "nginx";
|
||||||
# runDir = "/var/lib/photostore";
|
|
||||||
plugins = [ "python3" ];
|
plugins = [ "python3" ];
|
||||||
instance = {
|
instance = {
|
||||||
type = "emperor";
|
type = "emperor";
|
||||||
@ -18,6 +20,7 @@ in {
|
|||||||
type = "normal";
|
type = "normal";
|
||||||
pythonPackages = self: with self; [ gecloudpad ];
|
pythonPackages = self: with self; [ gecloudpad ];
|
||||||
socket = wsgi-sock;
|
socket = wsgi-sock;
|
||||||
|
env = ["GECLOUDPAD_SETTINGS=${gecloudpad_settings}"];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user