forgejo: use unix socket
This commit is contained in:
parent
08c96c47f5
commit
34c2661dad
1 changed files with 9 additions and 3 deletions
|
|
@ -12,13 +12,15 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
users.groups.forgejo.members = [ "caddy" ];
|
||||||
|
|
||||||
services.caddy.virtualHosts."git.wo2wz.fyi".extraConfig =
|
services.caddy.virtualHosts."git.wo2wz.fyi".extraConfig =
|
||||||
assert config.services.caddy.enable;
|
assert config.services.caddy.enable;
|
||||||
''
|
''
|
||||||
import default-settings
|
import default-settings
|
||||||
import cloudflare-tls
|
import cloudflare-tls
|
||||||
|
|
||||||
reverse_proxy localhost:${toString config.services.forgejo.settings.server.HTTP_PORT}
|
reverse_proxy unix/${config.services.forgejo.settings.server.HTTP_ADDR}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
services.forgejo = {
|
services.forgejo = {
|
||||||
|
|
@ -40,11 +42,15 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
server = {
|
server = {
|
||||||
HTTP_ADDR = "127.0.0.1";
|
PROTOCOL = "http+unix";
|
||||||
HTTP_PORT = 8008;
|
HTTP_ADDR = "/run/forgejo/forgejo.sock";
|
||||||
|
UNIX_SOCKET_PERMISSION = 660;
|
||||||
|
|
||||||
DOMAIN = "git.wo2wz.fyi";
|
DOMAIN = "git.wo2wz.fyi";
|
||||||
ROOT_URL = "https://git.wo2wz.fyi/";
|
ROOT_URL = "https://git.wo2wz.fyi/";
|
||||||
|
|
||||||
|
# cant work with cf tunnel unfortunately
|
||||||
|
DISABLE_SSH = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
database.SQLITE_JOURNAL_MODE = "WAL";
|
database.SQLITE_JOURNAL_MODE = "WAL";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue