switch from socket to port
This commit is contained in:
parent
fdc5f4bb3c
commit
c10a3517ac
1 changed files with 4 additions and 6 deletions
|
|
@ -12,7 +12,6 @@ in
|
|||
domain = fqdn;
|
||||
#environmentFile = config.age.secrets.hedgedoc_settings.path;
|
||||
protocolUseSSL = true;
|
||||
path = "/run/hedgedoc/hedgedoc.sock";
|
||||
db = {
|
||||
dialect = "postgresql";
|
||||
host = "/run/postgresql";
|
||||
|
|
@ -36,7 +35,6 @@ in
|
|||
recommendedOptimisation = true;
|
||||
recommendedGzipSettings = true;
|
||||
recommendedBrotliSettings = true;
|
||||
upstreams.hedgedoc.servers."unix:${cfg.path}" = { };
|
||||
virtualHosts."${fqdn}" = {
|
||||
default = true;
|
||||
quic = true;
|
||||
|
|
@ -45,23 +43,23 @@ in
|
|||
enableACME = true;
|
||||
locations = {
|
||||
"/" = {
|
||||
proxyPass = "http://hedgedoc";
|
||||
proxyPass = "http://${cfg.host}:${toString cfg.port}";
|
||||
recommendedProxySettings = true;
|
||||
};
|
||||
"/socket.io/" = {
|
||||
proxyPass = "http://hedgedoc";
|
||||
proxyPass = "http://${cfg.host}:${toString cfg.port}";
|
||||
proxyWebsockets = true;
|
||||
recommendedProxySettings = true;
|
||||
};
|
||||
"/metrics" = {
|
||||
proxyPass = "http://hedgedoc";
|
||||
proxyPass = "http://${cfg.host}:${toString cfg.port}";
|
||||
recommendedProxySettings = true;
|
||||
#allow 195.160.173.255;
|
||||
#allow 2001:678:760:cccb::ffff;
|
||||
#deny all;
|
||||
};
|
||||
"/status" = {
|
||||
proxyPass = "http://hedgedoc";
|
||||
proxyPass = "http://${cfg.host}:${toString cfg.port}";
|
||||
recommendedProxySettings = true;
|
||||
#allow 195.160.173.255;
|
||||
#allow 2001:678:760:cccb::ffff;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue