Page 1 of 1
strange ssl problem with reverse proxy
Posted: Sat Oct 03, 2020 7:24 am
by whoami
Solved pls see below reply i solved it hope it will help someone
Re: strange ssl problem with reverse proxy
Posted: Sat Oct 03, 2020 8:44 am
by whoami
never mind i solved it its about setting custom parameter in app.ini
god gogs default config sucks lol
Code: Select all
PROTOCOL = https
EXTERNAL_URL = https://yourdomain.com/
CERT_FILE = /home/****/*****/ssl.crt
KEY_FILE = /home/******/****/ssl.key
HTTP_PORT = 3000
DISABLE_SSH = false
SSH_PORT = 22
START_SSH_SERVER = false
OFFLINE_MODE = false
after making these changes and restart gogs it worked perfectly
Re: strange ssl problem with reverse proxy
Posted: Fri Oct 16, 2020 5:10 pm
by jackdanielux
Hi
I seem to have a similar problem, only that I don't know how to fix them:
- I have a web app running on http://mysub.domain.com:9000
- This url is the admin dashboard of the app
- This app shoots email with public facing URLs like http://mysub.domain.com:9000/xxx/xxx/xxx (which lead to an action within my app)
- The mysub.domain.com is SSL enabled and loads with SSL but the moment the port (9000) is added it returns error page and I have to access it via http
- The problem : 1 - port is visible to public and 2 - the URL shows insecure
- The solution required : 1 - port to be removed without the action of the URL to be impacted and the same URL needs to be served on SSL
Any help is appreciated.