Reputation: 71
I installed Gitea using Docker, mapped the ports, and set up a reverse proxy. Everything works perfectly, except that I need to include the port in the domain name for it to work. Without the port, I get an Internal Server Error, and Gitea reports EOF. What could I have set up incorrectly? I know it's probably something minor, but I can't figure it out, and I've been struggling with it for hours. Thank you all very much for your help!
Virtual host:
<VirtualHost 1.2.3.4:80>
ServerName git.domain.tld
Redirect permanent / https://git.domain.tld/
</VirtualHost>
<VirtualHost 1.2.3.4:443>
ServerName git.domain.tld
DocumentRoot /var/www/git
SSLEngine on
SSLProtocol All -SSLv2 -SSLv3 -TLSv1 -TLSv1.1
SSLHonorCipherOrder on
SSLCertificateFile /var/www/clients/client1/web1/ssl/git.domain.tld-le.crt
SSLCertificateKeyFile /var/www/clients/client1/web1/ssl/git.domain.tld-le.key
SSLUseStapling on
SSLStaplingResponderTimeout 5
SSLStaplingReturnResponderErrors off
ProxyPass / https://127.0.0.1:8082/
ProxyPassReverse / https://127.0.0.1:8082/
</VirtualHost>
docker yml:
version: "3"
networks:
gitea:
external: false
services:
server:
image: gitea/gitea:latest
container_name: gitea
environment:
- USER_UID=1000
- USER_GID=1000
restart: always
networks:
- gitea
volumes:
- ./gitea:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
- /etc/letsencrypt/live/git.domain.tld-0001/fullchain.pem:/certs/cert.pem
- /etc/letsencrypt/live/git.domain.tld-0001/privkey.pem:/certs/key.pem
ports:
- "8082:3000"
- "222:22"
app.ini:
...
PROTOCOL = https
DOMAIN = git.domain.tld
HTTP_PORT = 3000
ROOT_URL = https://git.domain.tld
CERT_FILE = /certs/cert.pem
KEY_FIL = /certs/key.pem
REDIRECT_OTHER_PORT = true
PORT_TO_REDIRECT = 3080
...
Btw. Certs have different paths, but they are same (symlinks). No change when I normalize them.
Upvotes: 0
Views: 37