machines/magenta: clean up nginx configs
This commit is contained in:
parent
3e9c3701b1
commit
53c1bbeea0
2 changed files with 0 additions and 17 deletions
|
@ -9,8 +9,6 @@ let
|
|||
User-agent: *
|
||||
Disallow: /github
|
||||
'';
|
||||
|
||||
magentaData = import ../data.secret.nix;
|
||||
in
|
||||
{
|
||||
services.postgresql.package = pkgs.postgresql_14;
|
||||
|
@ -122,14 +120,6 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
/*
|
||||
services.nginx.virtualHosts.${hostname} = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
locations."/".proxyPass = "http://localhost:${toString giteaCfg.httpPort}/";
|
||||
};
|
||||
*/
|
||||
|
||||
age.secrets.gitea-smtp-passfile = {
|
||||
file = ../../../secrets/gitea-smtp-passfile.age;
|
||||
owner = giteaCfg.user;
|
||||
|
|
|
@ -19,14 +19,7 @@
|
|||
# required for certificateScheme = 3
|
||||
# TODO: Try to use traefik
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
recommendedGzipSettings = true;
|
||||
recommendedOptimisation = true;
|
||||
recommendedProxySettings = true;
|
||||
recommendedTlsSettings = true;
|
||||
defaultHTTPListenPort = 10080;
|
||||
defaultSSLListenPort = 10443;
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 10080 10443 ];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue