# Apache Reverse Proxy Configuration for Gitea # Copy to /etc/apache2/sites-available/gitea.conf # Required modules: sudo a2enmod proxy proxy_http ssl headers rewrite ServerName git.nexpa-ai.com ProxyPreserveHost On ProxyRequests Off ProxyPass / http://127.0.0.1:3200/ ProxyPassReverse / http://127.0.0.1:3200/ RequestHeader set X-Forwarded-Proto "http" # Allow large git push uploads (500MB) LimitRequestBody 524288000 # Note: Once SSL certificate is issued via Certbot: # Run: sudo certbot --apache -d git.nexpa-ai.com # Certbot will automatically add the SSL (*:443) VirtualHost and HTTPS redirect.