fix checkinator socket address

master
vuko 2020-11-11 09:31:31 +01:00
parent 40e8632932
commit 3a29d56147
1 changed files with 2 additions and 2 deletions

View File

@ -105,7 +105,7 @@ in {
''}"
];
serviceConfig.workingDirectory = checkinator;
serviceConfig.ExecStart = "${python}/bin/gunicorn -b unix:/tmp/checkinator-web.sock at.webapp:app";
serviceConfig.ExecStart = "${python}/bin/gunicorn -b unix:${socket_dir}/web.sock at.webapp:app";
serviceConfig.ExecStopPost = [
''!${pkgs.coreutils}/bin/rm -rf /mnt/secrets/${name}''
];
@ -120,7 +120,7 @@ in {
alias = "${repo}/static/";
};
locations."/" = {
proxyPass = "http://unix:/tmp/checkinator-web.sock";
proxyPass = "http://unix://${socket_dir}/web.sock";
extraConfig = ''
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;