Without nginx
This commit is contained in:
parent
5230e6d3bd
commit
a58fb36a8a
1 changed files with 12 additions and 12 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue