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

Use x-forwarded-host #92

Merged
merged 6 commits into from
May 30, 2018
Merged

Use x-forwarded-host #92

merged 6 commits into from
May 30, 2018

Conversation

darcoder
Copy link

For use x-forwarded-host

setting
differentDomains:true,
forwardedHost: true,

@paulgv
Copy link
Collaborator

paulgv commented May 29, 2018

Cool thanks @darcoder !
Could you add a default value (false) for the new option in src/helpers/constants.js?
Also anyway you could add some doc about it? Or maybe give me some details on what it does and I'll try to document it myself.

Thanks!

@darcoder
Copy link
Author

darcoder commented May 29, 2018

I use apache and the host should be defined by the x-forwarded-host

Nuxt for frontend http://example.com/
Apache for api (php) http://example.com/api

<VirtualHost example.com>
ServerName example.com
DocumentRoot "{path}"
ProxyPass /api http://example.com/api 
  <Location />
    ProxyPass http://0.0.0.0:3333/
    ProxyPassReverse http://0.0.0.0:3333/
  </Location>
</VirtualHost>

@paulgv paulgv merged commit 514ad63 into nuxt-modules:master May 30, 2018
@paulgv
Copy link
Collaborator

paulgv commented May 30, 2018

Thanks @darcoder, I'll add some doc when I get the chance!

farnabaz added a commit to farnabaz/i18n-module that referenced this pull request Mar 25, 2021
* feat: color settings

* fix: node 12 optional chaining

* read docus settings

* update docs

* Update docs/content/2.usage/1.configuration.md

Co-authored-by: Sébastien Chopin <seb@nuxtjs.com>
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

2 participants