mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-06-06 21:09:22 +02:00
enable doc server
This commit is contained in:
parent
0d9dfb90ea
commit
6141db368e
3 changed files with 48 additions and 11 deletions
47
systems/hetzner/nginx.nix
Normal file
47
systems/hetzner/nginx.nix
Normal file
|
@ -0,0 +1,47 @@
|
|||
{config, pkgs, ...}:
|
||||
|
||||
{
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
recommendedTlsSettings = true;
|
||||
recommendedOptimisation = true;
|
||||
recommendedGzipSettings = true;
|
||||
recommendedProxySettings = true;
|
||||
virtualHosts = {
|
||||
"missing.ninja" = {
|
||||
serverAliases = [ "joens.zone" "joens.website" "joens.site" "joens.online" "joens.link" "joens.international" "joens.family" "joens.digital" "joens.blog" "net0loggy.net" "clan-war.net" "net0loggy.de" "dtg-c.de" ];
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
};
|
||||
"webmail.missing.ninja" = {
|
||||
serverAliases = [ "joens.email" ];
|
||||
};
|
||||
"pad.missing.ninja" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
locations."/".proxyPass = "http://localhost:3333";
|
||||
locations."/socket.io/" = {
|
||||
proxyPass = "http://localhost:3333";
|
||||
proxyWebsockets = true;
|
||||
extraConfig =
|
||||
"proxy_ssl_server_name on;"
|
||||
;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
hedgedoc = {
|
||||
enable = true;
|
||||
settings = {
|
||||
db = {
|
||||
dialect = "sqlite";
|
||||
torage = "/var/lib/hedgedoc/db.hedgedoc.sqlite";
|
||||
};
|
||||
domain = "pad.missing.ninja";
|
||||
port = 3333;
|
||||
useSSL = false;
|
||||
protocolUseSSL = true;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue