Bubka / 2FAuth

A Web app to manage your Two-Factor Authentication (2FA) accounts and generate their security codes
https://docs.2fauth.app/
GNU Affero General Public License v3.0
2.28k stars 152 forks source link

Cannot start in HTTPS #285

Closed deanfourie1 closed 7 months ago

deanfourie1 commented 9 months ago

Version

5.0.3

Details & Steps to reproduce

Fresh install, appears to not be running in HTTPS.

Expectation

to be able to reach over SSL

Error & Logs

root@2fauth:/home/2fauth/2fauth/storage/logs# cat laravel-2024-01-23.log
[2024-01-23 10:01:05] local.NOTICE: App setting 'lastRadarScan' set to 1706004065  
[2024-01-23 10:01:05] local.NOTICE: App setting 'latestRelease' set to 'v5.0.3'  
root@2fauth:/home/2fauth/2fauth/storage/logs#

Execution environment

docker compose

Containerization

Additional information

When attempting run in HTTPS (https://IP:8000) I just receive a Hmmm… can't reach this page.

I cant access over HTTP (http://IP:8000) however cannot use the camera to scan 2fa codes etc.

Seems 2fa is not enabled?

Any way to enable?

Thanks

deanfourie1 commented 9 months ago

Any ideas on this one?

Bubka commented 9 months ago

I just receive a Hmmm… can't reach this page.

You get a blank page? If so, you need to set ASSET_URL in your env vars. See https://github.com/Bubka/2FAuth/issues?q=blank+screen

deanfourie1 commented 9 months ago

I dont get a blank page, just get a 404 error basicly, but I can reach it over HTTP.

Trapulo commented 9 months ago

on port 8000 you have HTTP service, not HTTPS. Current image does not include HTTPS it seems. You may reverse proxy request + SSL offload them with something external

Bubka commented 8 months ago

@deanfourie1 Solved? Can the issue be closed?

Bubka commented 7 months ago

I close the issue. Feel free to re-open it if you need more support.