refactor
This commit is contained in:
committed by
Joakim Repomaa
parent
e0d0c12a8e
commit
6a5789d45b
@@ -15,9 +15,9 @@ in
|
||||
enable = true;
|
||||
description = "Snips pastebin";
|
||||
environment = {
|
||||
SNIPS_HTTP_INTERNAL = "http://127.0.0.1:${toString port}";
|
||||
SNIPS_HTTP_INTERNAL = "http://[::1]:${toString port}";
|
||||
SNIPS_HTTP_EXTERNAL = "https://${fqdn}";
|
||||
SNIPS_SSH_INTERNAL = "ssh://0.0.0.0:${toString sshPort}";
|
||||
SNIPS_SSH_INTERNAL = "ssh://[::0]:${toString sshPort}";
|
||||
SNIPS_SSH_EXTERNAL = "ssh://${fqdn}:${toString sshPort}";
|
||||
SNIPS_HOST_KEY_PATH = "/var/lib/snips/keys/snips";
|
||||
SNIPS_DB_FILEPATH = "/var/lib/snips/snips.db";
|
||||
@@ -38,7 +38,7 @@ in
|
||||
};
|
||||
};
|
||||
|
||||
modules.webserver.vHosts.${fqdn}.locations."/".proxy = "http://127.0.0.1:${toString port}";
|
||||
modules.webserver.vHosts.${fqdn}.locations."/".proxyPort = port;
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ sshPort ];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user