Gitea package names (e.g. OCI images, etc.) can contain `/` charactres. These are encoded as %2F in request paths. Apache needs to forward these sequences to the Gitea server without decoding them. Unfortunately, the `AllowEncodedSlashes` setting, which controls this behavior, is a per-virtualhost setting that is *not* inherited from the main server configuration, and therefore must be explicitly set inside the `VirtualHost` block. This means Gitea needs its own virtual host definition, and cannot rely on the default virtual host.
10 lines
211 B
YAML
10 lines
211 B
YAML
apache_default_ssl_vhost: false
|
|
sshd_agent_forwarding: false
|
|
sshd_tcp_forwarding: false
|
|
sshd_x11_forwarding: false
|
|
sshd_config_matches:
|
|
- object: User
|
|
pattern: gitea
|
|
password_auth: false
|
|
permit_tty: false
|