gitea: another attempt at fixing ssh
This commit is contained in:
parent
be56fde33f
commit
5c5a73e703
1 changed files with 17 additions and 0 deletions
|
@ -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";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Reference in a new issue