gitea: Add new subdomain and some nginx config
Lets see if this actually works
This commit is contained in:
parent
c2d29cb4b9
commit
58c69fa885
1 changed files with 33 additions and 0 deletions
|
@ -38,6 +38,9 @@
|
|||
DISABLE_REGISTRATION = true;
|
||||
REGISTER_EMAIL_CONFIRM = true;
|
||||
};
|
||||
other = {
|
||||
SHOW_FOOTER_VERSION = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -52,6 +55,32 @@
|
|||
"proxy_set_header Host $host;"
|
||||
;
|
||||
};
|
||||
listen = {
|
||||
ssh = {
|
||||
proxyProtocol = true;
|
||||
port = 80;
|
||||
};
|
||||
http = {
|
||||
proxyProtocol = true;
|
||||
port = 80;
|
||||
};
|
||||
https = {
|
||||
proxyProtocol = true;
|
||||
port = 443;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
"ssh.bhankas.org" = {
|
||||
addSSL = true;
|
||||
enableACME = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://127.0.0.1:22";
|
||||
proxyWebsockets = true;
|
||||
extraConfig =
|
||||
"proxy_set_header Host $host;"
|
||||
;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -61,5 +90,9 @@
|
|||
email = "admin@bhankas.org";
|
||||
dnsResolver = "1.1.1.1:53";
|
||||
};
|
||||
"ssh.bhankas.org" = {
|
||||
email = "admin@bhankas.org";
|
||||
dnsResolver = "1.1.1.1:53";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Reference in a new issue