Files
starshipos-f18-config/sites-available/gitea.strshipos.conf
T
Robert JamesandClaude Sonnet 4.6 46c2ae201f Initial commit: Apache config with starshipos-f18 and strshipos domains
Virtual hosts for starshipos-f18.com/.org (XWiki, Gitea, Nexus) with
Let's Encrypt SSL. Old strshipos.* domains redirect 301 to new domains.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-10-08 14:41:21 +00:00

25 lines
805 B
Plaintext

# Gitea — canonical: gitea.strshipos.com
<VirtualHost *:80>
ServerName gitea.strshipos.com
ServerAlias gitea.strshipos.org
ProxyPreserveHost On
ProxyRequests Off
RewriteEngine On
# Websocket support (Gitea uses SSE/WS for live updates)
RewriteCond %{HTTP:Upgrade} websocket [NC]
RewriteRule /(.*) ws://127.0.0.1:3000/$1 [P,L]
RewriteRule ^/(.*) http://127.0.0.1:3000/$1 [P,L]
ProxyPassReverse / http://127.0.0.1:3000/
RequestHeader set X-Forwarded-Proto "http"
ErrorLog ${APACHE_LOG_DIR}/gitea-error.log
CustomLog ${APACHE_LOG_DIR}/gitea-access.log combined
RewriteCond %{SERVER_NAME} =gitea.strshipos.com [OR]
RewriteCond %{SERVER_NAME} =gitea.strshipos.org
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>