gitea changes
This commit is contained in:
parent
e42f407bd9
commit
49a7f584d5
1 changed files with 1 additions and 11 deletions
|
|
@ -10,7 +10,6 @@ in
|
||||||
enable = true;
|
enable = true;
|
||||||
domain = "${domain}";
|
domain = "${domain}";
|
||||||
rootUrl = "https://${domain}";
|
rootUrl = "https://${domain}";
|
||||||
log.level = "Warn";
|
|
||||||
httpPort = (lib.strings.toInt gitea_port);
|
httpPort = (lib.strings.toInt gitea_port);
|
||||||
|
|
||||||
database = {
|
database = {
|
||||||
|
|
@ -26,9 +25,6 @@ in
|
||||||
service = {
|
service = {
|
||||||
REGISTER_MANUAL_CONFIRM = true;
|
REGISTER_MANUAL_CONFIRM = true;
|
||||||
};
|
};
|
||||||
server = {
|
|
||||||
SSH_SERVER_HOST_KEYS = "ssh/gitea.ed25519";
|
|
||||||
};
|
|
||||||
ui = {
|
ui = {
|
||||||
DEFAULT_THEME = "arc-green";
|
DEFAULT_THEME = "arc-green";
|
||||||
#THEMES = "gitea-modern";
|
#THEMES = "gitea-modern";
|
||||||
|
|
@ -58,13 +54,7 @@ in
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
locations = {
|
locations = {
|
||||||
"/" = {
|
"/" = {
|
||||||
proxyPass = "http://127.0.0.1:${gitea_port}";
|
proxyPass = "http://localhost:${gitea_port}";
|
||||||
extraConfig = ''
|
|
||||||
proxy_set_header Host $host;
|
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue