desktop preparing
This commit is contained in:
parent
d2b59d97cb
commit
79d3f7e89d
7 changed files with 65 additions and 47 deletions
|
|
@ -30,12 +30,9 @@
|
|||
forgejo = {
|
||||
enable = true;
|
||||
database.type = "postgres";
|
||||
settings = {
|
||||
service.DISABLE_REGISTRATION = true;
|
||||
server = {
|
||||
HTTP_PORT = 8039;
|
||||
ROOT_URL = "https://bogaledev.ru/git/";
|
||||
};
|
||||
settings.server = {
|
||||
HTTP_PORT = 8039;
|
||||
ROOT_URL = "https://bogaledev.ru/git/";
|
||||
};
|
||||
};
|
||||
phpfpm.pools.php = {
|
||||
|
|
@ -44,7 +41,7 @@
|
|||
phpEnv = { PATH = "/run/current-system/sw/bin"; };
|
||||
settings = {
|
||||
"pm" = "ondemand";
|
||||
"pm.max_children" = 8;
|
||||
"pm.max_children" = 4;
|
||||
"listen.owner" = "nginx";
|
||||
"listen.group" = "nginx";
|
||||
};
|
||||
|
|
@ -88,6 +85,7 @@
|
|||
add_header X-Content-Type-Options "nosniff" always;
|
||||
'';
|
||||
locations = {
|
||||
"/git/".proxyPass = "http://127.0.0.1:8039/";
|
||||
"/" = {
|
||||
extraConfig = phpPool;
|
||||
index = "index.php index.html";
|
||||
|
|
@ -101,7 +99,6 @@
|
|||
allow 10.1.0.0/16;
|
||||
deny all;
|
||||
'';
|
||||
"/git/".proxyPass = "http://127.0.0.1:8039/";
|
||||
"/vw/" = {
|
||||
proxyWebsockets = true;
|
||||
extraConfig = localNetworks;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue