diff options
author | makefu <github@syntax-fehler.de> | 2018-01-28 14:15:02 +0100 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2018-01-28 14:15:02 +0100 |
commit | a645fb4b9acd5103bcb1b33ada8ba93f120834fa (patch) | |
tree | 079d623d18acc09af0a1f475e41f99521f2c7e7c /makefu/2configs/deployment | |
parent | 7d30101dd3f4b6e1191e37ea6a81c1c33fa535de (diff) |
ma photostore.krebsco.de: enable ssl
Diffstat (limited to 'makefu/2configs/deployment')
-rw-r--r-- | makefu/2configs/deployment/photostore.krebsco.de.nix | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/makefu/2configs/deployment/photostore.krebsco.de.nix b/makefu/2configs/deployment/photostore.krebsco.de.nix index 9e16a384a..ecbca9ea3 100644 --- a/makefu/2configs/deployment/photostore.krebsco.de.nix +++ b/makefu/2configs/deployment/photostore.krebsco.de.nix @@ -26,14 +26,16 @@ in { services.nginx = { enable = mkDefault true; virtualHosts."photostore.krebsco.de" = { - locations = { - "/".extraConfig = '' - uwsgi_pass unix://${wsgi-sock}; - uwsgi_param UWSGI_CHDIR ${workdir}; - uwsgi_param UWSGI_MODULE cuserver.main; - uwsgi_param UWSGI_CALLABLE app; - include ${pkgs.nginx}/conf/uwsgi_params; - ''; + enableACME = true; + forceSSL = true; + locations = { + "/".extraConfig = '' + uwsgi_pass unix://${wsgi-sock}; + uwsgi_param UWSGI_CHDIR ${workdir}; + uwsgi_param UWSGI_MODULE cuserver.main; + uwsgi_param UWSGI_CALLABLE app; + include ${pkgs.nginx}/conf/uwsgi_params; + ''; }; }; }; |