This repository has been archived by the owner on Apr 9, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ramon Navarro Bosch
committed
Dec 30, 2016
1 parent
4a4bbd0
commit d8377bf
Showing
3 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ Contents: | |
|
||
quickstart | ||
configuration | ||
production | ||
roles | ||
applications | ||
addons | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Production | ||
|
||
## Nginx front | ||
|
||
Its so common to add the api with a nginx with a proxy_pass in front so there is the option | ||
define which is going to be the url for the generated urls inside the api: | ||
|
||
Adding the header: | ||
|
||
``` | ||
X-VirtualHost-Monster https://example.com/api/ | ||
``` | ||
|
||
Will do a rewrite of the urls. | ||
|
||
Some configuration on nginx : | ||
|
||
``` | ||
location /api/ { | ||
proxy_set_header X-VirtualHost-Monster $scheme://$http_host/api/ | ||
proxy_pass http://api.plone.server.svc.cluster.local:80/; | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters