Restrict Web access on SSH Domain


#1

Gogs Version 0.11.53.0603
System: Kubernetes Cluster
Database: SQLite

I’ve enabled an SSH_DOMAIN to be able to use SSH on a different domain than HTTPS due to the Kubernetes Ingress not allowing SSH (only HTTPS). But the web interface can be reached/accessed via non-secure HTTP using the SSH domain.

Is there a way to block web access on the SSH_DOMAIN? So that it has to go through the normal domain, while SSH is only usable though the defined SSH_DOMAIN?

Thanks!


#2

Hi,

I think Gogs itself does not care how user gets to it, you may need to adjust your proxy or k8s config the blocks the certain action/access.