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 = {
|
services = {
|
||||||
nginx = {
|
# nginx = {
|
||||||
enable = true;
|
# enable = true;
|
||||||
virtualHosts.${srv.DOMAIN} = {
|
# virtualHosts.${srv.DOMAIN} = {
|
||||||
forceSSL = true;
|
# forceSSL = true;
|
||||||
enableACME = true;
|
# enableACME = true;
|
||||||
extraConfig = ''
|
# extraConfig = ''
|
||||||
client_max_body_size 512M;
|
# client_max_body_size 512M;
|
||||||
'';
|
# '';
|
||||||
locations."/".proxyPass = "http://localhost:${toString srv.HTTP_PORT}";
|
# locations."/".proxyPass = "http://localhost:${toString srv.HTTP_PORT}";
|
||||||
};
|
# };
|
||||||
};
|
# };
|
||||||
|
|
||||||
forgejo = {
|
forgejo = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -48,7 +48,7 @@ in
|
||||||
settings = {
|
settings = {
|
||||||
server = {
|
server = {
|
||||||
DOMAIN = "188.40.66.217";
|
DOMAIN = "188.40.66.217";
|
||||||
ROOT_URL = "https://${srv.DOMAIN}";
|
ROOT_URL = "http://${srv.DOMAIN}";
|
||||||
HTTP_PORT = 3000;
|
HTTP_PORT = 3000;
|
||||||
SSH_PORT = 62;
|
SSH_PORT = 62;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue