Skip to content
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

Detect HTTPS if wordpress is behind a reverse proxy #413

Merged
merged 4 commits into from
Feb 2, 2019

Conversation

tristanbes
Copy link
Contributor

Hello,

It'd be great if HTTPS would be working behind a reverse proxy, which is very common when using a PaaS or a WAF, or any decent cloud providers.

https://codex.wordpress.org/Function_Reference/is_ssl#Notes

Since it's a condition, it does not harm existing wordpress installations.

Hello,

It'd be great if HTTPS would be working behind a reverse proxy, which is very common when using a PaaS or a WAF, or any decent cloud providers.

https://codex.wordpress.org/Function_Reference/is_ssl#Notes

Since it's a condition, it does not harm existing wordpress installations.
@swalkinshaw
Copy link
Member

Seems like a good thing to support by default 👍

Maybe this should go above loading the env specific config? It would allow them have logic based on this.

config/application.php Outdated Show resolved Hide resolved
@tristanbes
Copy link
Contributor Author

@swalkinshaw done.

config/application.php Outdated Show resolved Hide resolved
Co-Authored-By: tristanbes <tristan@yproximite.com>
@swalkinshaw swalkinshaw merged commit 785c64f into roots:master Feb 2, 2019
@swalkinshaw
Copy link
Member

Thank you!

gabrielwolf added a commit to gabrielwolf/bedrock-grunt-wordpress-deploy that referenced this pull request Apr 23, 2019
* commit '4e86bdd45ad328d5077d5956d93ca6ff3207451a': (46 commits)
  Configure wp-cli so that `wp server` uses correct webroot
  Update CHANGELOG [ci skip]
  Update roots/wordpress from 5.1 to 5.1.1
  Remove community health files so that defaults from roots/.github are used
  swap usable of php7 only null coalesce
  Update CHANGELOG [ci skip]
  Update roots/wordpress from 5.0.3 to 5.1
  CHANGELOG for 1.12.1 [ci skip]
  Update composer.lock
  DSN tweaks
  1.12.0
  change variable to snake case
  WP_HOME and WP_SITEURL required once
  Improve required env
  Detect HTTPS if wordpress is behind a reverse proxy (roots#413)
  CR
  allow to not define port in the DSN
  support passwordless database
  Update documentation
  Put an example in the .env.example
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants