SSH access for Gitea; stream config nginx
This commit is contained in:
@@ -33,6 +33,7 @@ in
|
||||
networking.firewall.allowedTCPPorts = [
|
||||
80
|
||||
443
|
||||
12222
|
||||
];
|
||||
|
||||
security.acme = {
|
||||
@@ -47,6 +48,14 @@ in
|
||||
recommendedOptimisation = true;
|
||||
recommendedGzipSettings = true;
|
||||
|
||||
# Git ssh
|
||||
streamConfig = ''
|
||||
server {
|
||||
listen 12222;
|
||||
proxy_pass ${upstream}:12222;
|
||||
}
|
||||
'';
|
||||
|
||||
virtualHosts = {
|
||||
# controller services (proxied to upstream tailscale node)
|
||||
"git.cyperpunk.de" = (mkProxy 9000) // {
|
||||
|
||||
Reference in New Issue
Block a user