fix(MOMO): set recommended nginx settings

This commit is contained in:
Jacob Bachmann 2025-10-13 11:03:00 +02:00
parent 9b95f4de65
commit 624faee52d
Signed by: bchmnn
GPG key ID: 732A612DAD28067D
3 changed files with 15 additions and 13 deletions

View file

@ -5,21 +5,24 @@
settings = {
port = 8009;
host = "127.0.0.1";
allowOrigin =
[ "localhost" "127.0.0.1" "hedgedoc.dryb.org" "md.dryb.org" ];
allowGravatar = true;
domain = "hedgedoc.dryb.org";
protocolUseSSL = true;
db = {
username = "hedgedoc";
database = "hedgedoc";
host = "postgresql:///hedgedoc";
host = "/run/postgresql";
dialect = "postgresql";
};
allowAnonymous = false;
allowAnonymousEdits = false;
allowFreeURL = true;
requireFreeURLAuthentication = true;
email = true;
allowEmailRegister = true;
allowEmailRegister = false;
allowGravatar = true;
};
};

View file

@ -2,6 +2,12 @@
{
services.nginx = {
enable = true;
recommendedGzipSettings = true;
recommendedOptimisation = true;
recommendedProxySettings = true;
recommendedTlsSettings = true;
virtualHosts."hedgedoc.dryb.org" = {
addSSL = true;
enableACME = true;
@ -9,13 +15,6 @@
proxyPass = "http://127.0.0.1:8009";
};
};
virtualHosts."md.dryb.org" = {
addSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "301 https://hedgedoc.dryb.org$request_uri";
};
};
virtualHosts."miniflux.dryb.org" = {
addSSL = true;
enableACME = true;