Replies: 4 comments 3 replies
-
Hi, thanks for opening an issue. This will not happen, thanks for the suggestion though. A correctly configured web server will have no problem serving https urls. |
Beta Was this translation helpful? Give feedback.
-
Hi JC5, Thank you for your reply. It did with me, though. I've been using Firefly for a year now and this started with some versions earlier, can't really tell when exactly. I assume most people just run Firefly within Docker and never had to deal with this. |
Beta Was this translation helpful? Give feedback.
-
Forcing the protocol is a bit of a hack and it's an opening for more problems down the line. What's your setup like? |
Beta Was this translation helpful? Give feedback.
-
I just ran into the same error here is some details:
Here is my nginx block:
Am I doing something stoopid or is it an error? 🤔 |
Beta Was this translation helpful? Give feedback.
-
Support guidelines
Description
So there have been multiple issues over the past years of users reporting that no CSS is being loaded or the base href being on 'http' instead of 'https'. The help page also suggests (here) that setting TRUSTED_PROXIES to * should fix this, but this doesn't apply to self hosted instances where that parameter does nothing.
Not having CSS loaded and the base href being on http will prevent your browser you from logging in, flagging it as insecure.
Solution
The solution is to add
to app/Providers/AppServiceProvider.php so the code looks like the following:
Remove the if statement if your env is set to 'testing' or you want to load it unconditionally. Otherwise, change your env to production.
You could, optionally, add a ASSET_URL at the top of your .env and that alone will fix the CSS issues, not the base href being loaded on http.
Perhaps the devs could include this, since you'll have to repeat these steps after every update. The same applies to the data-importer.
What are alternatives?
No response
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions