summaryrefslogtreecommitdiffstats
path: root/2configs/deployment
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2016-12-24 23:38:01 +0100
committermakefu <github@syntax-fehler.de>2016-12-24 23:38:01 +0100
commit6097e792d09d7caab54f7e9af3141de1c899ca36 (patch)
tree157b94c13d9dccbcaf05e9b1ddbc472ec4182952 /2configs/deployment
parent40f7744b389963b6e6a5faaf66bf406bd287c5e5 (diff)
m 2 *: krebs.nginx -> services.nginx
Diffstat (limited to '2configs/deployment')
-rw-r--r--2configs/deployment/mycube.connector.one.nix15
1 files changed, 5 insertions, 10 deletions
diff --git a/2configs/deployment/mycube.connector.one.nix b/2configs/deployment/mycube.connector.one.nix
index 091b7f21b..379176f78 100644
--- a/2configs/deployment/mycube.connector.one.nix
+++ b/2configs/deployment/mycube.connector.one.nix
@@ -27,23 +27,18 @@ in {
};
};
- krebs.nginx = {
+ services.nginx = {
enable = mkDefault true;
- servers = {
- mybox-connector-one = {
- listen = [ "${external-ip}:80" ];
- server-names = [
- "mycube.connector.one"
- "mybox.connector.one"
- ];
- locations = singleton (nameValuePair "/" ''
+ virtualHosts."mybox.connector.one" = {
+ locations = {
+ "/".extraConfig = ''
uwsgi_pass unix://${wsgi-sock};
uwsgi_param UWSGI_CHDIR ${pkgs.mycube-flask}/${pkgs.python.sitePackages};
uwsgi_param UWSGI_MODULE mycube.websrv;
uwsgi_param UWSGI_CALLABLE app;
include ${pkgs.nginx}/conf/uwsgi_params;
- '');
+ '';
};
};
};