gogs 0.11.91
Server version: Apache/2.4.6 (CentOS)
I was able to successfully setup https, but with port :3000 at the end. https://utl:3000/, how can I setup gogs without including the port :3000 in the url?
app.ini
[server]
PROTOCOL = https
DOMAIN = gogsdomaincom
HTTP_PORT = 3000
ROOT_URL = https://gogsdomaincom/
DISABLE_SSH = false
SSH_PORT = 22
START_SSH_SERVER = false
OFFLINE_MODE = false
CERT_FILE = /opt/gogs/custom/conf/cert.pem
KEY_FILE = /opt/gogs/custom/conf/key.pem
gogs.domain.com.conf
ServerName gogsdomaincom ServerAlias gogsdomaincom SSLCertificateFile /etc/letsencrypt/live/gogs.domain.com/cert.pem SSLCertificateKeyFile /etc/letsencrypt/live/gogs.domain.com/privkey.pem Include /etc/letsencrypt/options-ssl-apache.conf SSLCertificateChainFile /etc/letsencrypt/live/gogs.domain.com/chain.pem Order allow,deny Allow from all SSLProxyEngine on SSLProxyVerify none SSLProxyCheckPeerCN off SSLProxyCheckPeerName off SSLProxyCheckPeerExpire off ProxyPass / https://127.0.0.1:3000/ ProxyPassReverse / https://127.0.0.1:3000/
gogsdomain.conf
<VirtualHost *:80>
ServerName gogs.domain.com
ServerAlias gogs.domain.com
<Proxy *>
Order allow,deny
Allow from all
ProxyPreserveHost On
ProxyRequests off
ProxyPass / http://127.0.0.1:3000/
ProxyPassReverse / http://127.0.0.1:3000/
#Require all granted
RewriteEngine on
RewriteCond %{SERVER_NAME} =gogs.domain.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]