switch from socket to port

This commit is contained in:
XenGi 2026-02-01 13:58:26 +01:00
parent fdc5f4bb3c
commit c10a3517ac
Signed by: xengi
SSH key fingerprint: SHA256:jxWM2RTHvxxcncXycwwWkP7HCWb4VREN05UGJTbIPZg

View file

@ -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;