-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Fixed #12772 - use the APP_URL config more consistently #12793
Conversation
Signed-off-by: snipe <snipe@snipe.net>
PR Summary
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This absolutely looks much cleaner, but I do think we're going to have some problems here.
The main one I can think of is that if someone has APP_ALLOW_INSECURE_HOSTS
enabled (which plenty of self-hosted customers may use, specifically when they have different "inside hostnames" versus "outside hostnames"). I mean, I, personally, wouldn't ever do that, but I have definitely seen some of our users do that.
Maybe there's a new Helper function we should consider for this, instead?
@uberbrady would that mean that places using |
I mean, that's a pretty fair point - it's definitely possible. I just don't want to hose people that we don't have to hose on this one. |
@marcusmoore - that's the argument I'm having with him right now at the annex :D He's referring to this: snipe-it/app/Providers/AppServiceProvider.php Lines 47 to 54 in 6aec73c
But we're already using the config value there - and we already use |
Yeah, was just looking at that and agree. |
@spencerrlongg hit submit on the comment I was typing out 😄 . I also agree. |
MUTINY! YOU'RE ALL FIRRRRRRRREDDDD!!!!!! |
AND DIVORCED!!! 🤣 I think this should be good to go then - we are agreed? |
😆 yeah. I think we're good to go. |
I don't think this should harm anything here - we switched over to using
config('app.url')
a while back to better handle folks running Snipe-IT in a subdirectory, but I don't think we updated it everywhere.