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;
|
domain = fqdn;
|
||||||
#environmentFile = config.age.secrets.hedgedoc_settings.path;
|
#environmentFile = config.age.secrets.hedgedoc_settings.path;
|
||||||
protocolUseSSL = true;
|
protocolUseSSL = true;
|
||||||
path = "/run/hedgedoc/hedgedoc.sock";
|
|
||||||
db = {
|
db = {
|
||||||
dialect = "postgresql";
|
dialect = "postgresql";
|
||||||
host = "/run/postgresql";
|
host = "/run/postgresql";
|
||||||
|
|
@ -36,7 +35,6 @@ in
|
||||||
recommendedOptimisation = true;
|
recommendedOptimisation = true;
|
||||||
recommendedGzipSettings = true;
|
recommendedGzipSettings = true;
|
||||||
recommendedBrotliSettings = true;
|
recommendedBrotliSettings = true;
|
||||||
upstreams.hedgedoc.servers."unix:${cfg.path}" = { };
|
|
||||||
virtualHosts."${fqdn}" = {
|
virtualHosts."${fqdn}" = {
|
||||||
default = true;
|
default = true;
|
||||||
quic = true;
|
quic = true;
|
||||||
|
|
@ -45,23 +43,23 @@ in
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
locations = {
|
locations = {
|
||||||
"/" = {
|
"/" = {
|
||||||
proxyPass = "http://hedgedoc";
|
proxyPass = "http://${cfg.host}:${toString cfg.port}";
|
||||||
recommendedProxySettings = true;
|
recommendedProxySettings = true;
|
||||||
};
|
};
|
||||||
"/socket.io/" = {
|
"/socket.io/" = {
|
||||||
proxyPass = "http://hedgedoc";
|
proxyPass = "http://${cfg.host}:${toString cfg.port}";
|
||||||
proxyWebsockets = true;
|
proxyWebsockets = true;
|
||||||
recommendedProxySettings = true;
|
recommendedProxySettings = true;
|
||||||
};
|
};
|
||||||
"/metrics" = {
|
"/metrics" = {
|
||||||
proxyPass = "http://hedgedoc";
|
proxyPass = "http://${cfg.host}:${toString cfg.port}";
|
||||||
recommendedProxySettings = true;
|
recommendedProxySettings = true;
|
||||||
#allow 195.160.173.255;
|
#allow 195.160.173.255;
|
||||||
#allow 2001:678:760:cccb::ffff;
|
#allow 2001:678:760:cccb::ffff;
|
||||||
#deny all;
|
#deny all;
|
||||||
};
|
};
|
||||||
"/status" = {
|
"/status" = {
|
||||||
proxyPass = "http://hedgedoc";
|
proxyPass = "http://${cfg.host}:${toString cfg.port}";
|
||||||
recommendedProxySettings = true;
|
recommendedProxySettings = true;
|
||||||
#allow 195.160.173.255;
|
#allow 195.160.173.255;
|
||||||
#allow 2001:678:760:cccb::ffff;
|
#allow 2001:678:760:cccb::ffff;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue