gitea: another attempt at fixing ssh

This commit is contained in:
Payas Relekar 2023-06-18 13:49:54 +05:30
parent be56fde33f
commit 5c5a73e703

View file

@ -29,6 +29,9 @@
ROOT_URL = "https://git.bhankas.org";
DOMAIN = "git.bhankas.org";
COOKIE_SECURE = true;
SSH_SERVER_USE_PROXY_PROTOCOL = true;
# LOCAL_ROOT_URL
SSH_DOMAIN = "ssh.bhankas.org";
};
repository = {
DISABLE_HTTP_GIT = false;
@ -53,6 +56,15 @@
;
};
};
"ssh.bhankas.org" = {
addSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://127.0.0.1:22";
proxyWebsockets = true;
};
};
};
};
@ -61,5 +73,10 @@
email = "admin@bhankas.org";
dnsResolver = "1.1.1.1:53";
};
"ssh.bhankas.org" = {
email = "admin@bhankas.org";
dnsResolver = "1.1.1.1:53";
};
};
}