machines/magenta: clean up nginx configs

This commit is contained in:
Dmitriy Pleshevskiy 2023-03-05 16:43:21 +03:00
parent 3e9c3701b1
commit 53c1bbeea0
Signed by: pleshevskiy
GPG key ID: 79C4487B44403985
2 changed files with 0 additions and 17 deletions

View file

@ -9,8 +9,6 @@ let
User-agent: * User-agent: *
Disallow: /github Disallow: /github
''; '';
magentaData = import ../data.secret.nix;
in in
{ {
services.postgresql.package = pkgs.postgresql_14; 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 = { age.secrets.gitea-smtp-passfile = {
file = ../../../secrets/gitea-smtp-passfile.age; file = ../../../secrets/gitea-smtp-passfile.age;
owner = giteaCfg.user; owner = giteaCfg.user;

View file

@ -19,14 +19,7 @@
# required for certificateScheme = 3 # required for certificateScheme = 3
# TODO: Try to use traefik # TODO: Try to use traefik
services.nginx = { services.nginx = {
enable = true;
recommendedGzipSettings = true;
recommendedOptimisation = true;
recommendedProxySettings = true;
recommendedTlsSettings = true;
defaultHTTPListenPort = 10080; defaultHTTPListenPort = 10080;
defaultSSLListenPort = 10443; defaultSSLListenPort = 10443;
}; };
networking.firewall.allowedTCPPorts = [ 10080 10443 ];
} }