-
Notifications
You must be signed in to change notification settings - Fork 379
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
Document how web paths are built #829
Document how web paths are built #829
Conversation
b8ba579
to
4b35b5e
Compare
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.
I'm pretty happy with this, it's simplistic explains the required configuration without going into too much depth.
@greg0ire @antoligy I reformatted the majority of new information into a Thoughts on this PR at this point? Looks good to me; will merge shortly pending any comments otherwise. |
Good job! Shall I squash the commits or will you? |
|
||
The request context is most notably used to determine the HTTP scheme | ||
prepended to the final URL. If you use a proxy to offload TLS traffic | ||
decryption and need the resolver to generate HTTPS URLS, you will need |
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.
URLs
, maybe?
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.
Heh; already noticed that myself in my follow-up commit. though do please take a look at my final changes and advise if you notice anything else needing cleanup.
@greg0ire Just pushed an additional commit with some cleanup of the first few paragraphs of the web path resolver docs, as well as some changes to the my initial language with regard to the original intent of this PR. Feel free to squash the commits yourself, but there is no longer a need to do so yourself (GitHub PRs now allow for squashing and merging in a single click). |
I'm aware of that, it's just to make sure we don't forget it by mistake ;) |
5728609
to
d8f69ef
Compare
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.
traffic decryption and need the resolver to generate secure URLs, | ||
you will need to appropriately configure Symfony's `trusted proxies`_. | ||
If you utilize `embedded controllers`_ in your templates, you must | ||
add ``localhost`` to your trusted proxy configuration. |
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.
Not so sure about that one… trusted proxies configuration maybe? or "add localhost
as a trusted proxy"?
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.
I prefer "trusted proxies" to rewording the sentence. Pushed a commit reflective of such. Anything else we need to update/change?
There are common pitfalls that can be easily avoided with some configuration. Closes liip#828
95c7fff
to
dcc364e
Compare
LGTM (PR authors can't approve their own PRs) |
@greg0ire Ignore the base-branch changes; was going to merge immediately into I'm cautious with documentation changes, so I told my phone to remind me to come back to this PR tomorrow night (I do love Google voice control on Android: "OK Google, remind me [...] tomorrow night"). Assuming no objections or change requests arise, this'll be merged then. Thanks @greg0ire for the PR! |
Jeez, I hope they pay you well 😆 Anyway, thanks for everything, looking forward to the merge! |
No objections from me, cheers for the contribution and nice work with reformatting! Off-topic but do we have the documentation standards noted down anywhere so I can try and help catch this stuff in future? "Ok Google, remind me to pay @robfrawley in 🍺"! |
Thanks @greg0ire! |
There are common pitfalls that can be easily avoided with some
configuration.
Closes #828