fix checkinator socket address
parent
40e8632932
commit
3a29d56147
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue