Deploy Hedgedoc
This commit is contained in:
parent
260898d505
commit
cf01c7cfbe
|
@ -0,0 +1,11 @@
|
||||||
|
{
|
||||||
|
services.hedgedoc = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
domain = "hedgedoc.technogothic.net";
|
||||||
|
protocolUseSSL = true;
|
||||||
|
allowOrigin = [ "localhost" "hedgedoc.technogothic.net" ];
|
||||||
|
allowEmailRegister = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -6,6 +6,7 @@
|
||||||
../../common/fragments/fail2ban.nix
|
../../common/fragments/fail2ban.nix
|
||||||
../../common/fragments/frq-friend.nix
|
../../common/fragments/frq-friend.nix
|
||||||
../../common/fragments/grafana.nix
|
../../common/fragments/grafana.nix
|
||||||
|
../../common/fragments/hedgedoc.nix
|
||||||
../../common/fragments/mastodon-ebooks.nix
|
../../common/fragments/mastodon-ebooks.nix
|
||||||
../../common/fragments/mastodon.nix
|
../../common/fragments/mastodon.nix
|
||||||
../../common/fragments/matrix-ril100.nix
|
../../common/fragments/matrix-ril100.nix
|
||||||
|
@ -212,6 +213,18 @@
|
||||||
|
|
||||||
extraConfig = "client_max_body_size 64M;";
|
extraConfig = "client_max_body_size 64M;";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
virtualHosts."hedgedoc.technogothic.net" = {
|
||||||
|
useACMEHost = "technogothic.net";
|
||||||
|
forceSSL = true;
|
||||||
|
|
||||||
|
locations."/".proxyPass = "http://localhost:3000";
|
||||||
|
locations."/socket.io/" = {
|
||||||
|
proxyPass = "http://localhost:3000";
|
||||||
|
proxyWebsockets = true;
|
||||||
|
extraConfig = "proxy_ssl_server_name on;";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# This value determines the NixOS release from which the default
|
# This value determines the NixOS release from which the default
|
||||||
|
|
Loading…
Reference in New Issue