-
Notifications
You must be signed in to change notification settings - Fork 261
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong App URL #67
Comments
The APP_URL value is only used in cases where the site is accessed without a browser. ie, when running artisan console commands. |
Okay! Is there a way to change this? Or at least to change it once to another domain name? |
Sorry, I'm not sure how to change this. It's probably related to using a proxy. |
So... I got it. Somehow.
But then I had the problem, that internally in laraval/ symfony the asset-method still get me http links instead of https so unfortunately I needed to change the routes/web.php and add
on top of this file. Maybe, it is possible to add this |
Thanks for sharing the solution! You can add |
With I'm not sure yet what is redirecting so often. I will have a look into this later! |
Maybe this will help: Also, you may need to configure the trusted proxies: |
@hillelcoren |
I will have a look into that urls... but beside that. Even when I remove this trigger the internal links are not delivered as https as like |
Yes, that's the relevant code. Not sure... |
hey @SinoBoeckmann maybe you should add your proxy as a trusted one https://github.com/invoiceninja/invoiceninja/blob/master/.env.example#L36 |
@SinoBoeckmann For those of us who are newbies, where in the nginx.conf file is your line (prox redirect) line get added? |
@Mzngit This is just a "normal" nginx/ "vhost" configuration:
Within this config it is working well. I will open a pull request later this week with some fixes to the system. :) |
Ah ... and @lalop. I tried the trusted proxy config as you mentioned. But this wasn't working either. |
@SinoBoeckmann did you find any explanation ? |
Hey there,
I'm not sure how this can happen but:
I've setup the .env and changed the APP_URL to an normal domain (so no localhost address inside here).
But.. when I run the docker-compose and load the site... all (!) links in the markup are related to to the localhost:/ address (see screenshot below).
My setup is:
So... in theory:
InvoiceNinja-Nginx Container is running at Port 80 and through the docker-compose config file forward it to the host at port 8002 so that I can proxy_pass this via the nginx installation on the host to any domain I want or at least to that one I defined in APP_URL?
I'm just a bit confused... so... maybe someone can explain me why InvoiceNinja is not using the APP_URL instead of the URL provided by InvoiceNinja-Nginx Container
(And yes, I tried this multiple time while deleting everything, removing all docker images etc
)
I added an screenshot to may, clarify it a bit more:
The text was updated successfully, but these errors were encountered: