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