Skip to content
This repository has been archived by the owner on Apr 9, 2023. It is now read-only.

Commit

Permalink
Documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramon Navarro Bosch committed Dec 30, 2016
1 parent 4a4bbd0 commit d8377bf
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Contents:

quickstart
configuration
production
roles
applications
addons
Expand Down
23 changes: 23 additions & 0 deletions docs/source/production.md
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/;
}
```
3 changes: 3 additions & 0 deletions src/plone.server/CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
1.0a9 (unreleased)
------------------

- Add functionality like virtualhost monster to define the urls
[ramonnb]

- Add new pcreate command
[vangheem]

Expand Down

0 comments on commit d8377bf

Please sign in to comment.