Without nginx

This commit is contained in:
hodasemi 2025-05-20 12:40:58 +02:00
parent 5230e6d3bd
commit a58fb36a8a

View file

@ -29,17 +29,17 @@ in
};
services = {
nginx = {
enable = true;
virtualHosts.${srv.DOMAIN} = {
forceSSL = true;
enableACME = true;
extraConfig = ''
client_max_body_size 512M;
'';
locations."/".proxyPass = "http://localhost:${toString srv.HTTP_PORT}";
};
};
# nginx = {
# enable = true;
# virtualHosts.${srv.DOMAIN} = {
# forceSSL = true;
# enableACME = true;
# extraConfig = ''
# client_max_body_size 512M;
# '';
# locations."/".proxyPass = "http://localhost:${toString srv.HTTP_PORT}";
# };
# };
forgejo = {
enable = true;
@ -48,7 +48,7 @@ in
settings = {
server = {
DOMAIN = "188.40.66.217";
ROOT_URL = "https://${srv.DOMAIN}";
ROOT_URL = "http://${srv.DOMAIN}";
HTTP_PORT = 3000;
SSH_PORT = 62;
};