Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: improved docs for managed version and NGINX (#791)
* docs: improved docs for managed version * docs: create a page for NGINX * fix
- Loading branch information
Showing
7 changed files
with
48 additions
and
30 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
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
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
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
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
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
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,25 @@ | ||
# Using NGINX as an HTTP/2 Reverse Proxy in Front of the Hub | ||
|
||
[NGINX](https://www.nginx.com) is supported out of the box. Use the following proxy configuration: | ||
|
||
```nginx | ||
server { | ||
listen 443 ssl http2; | ||
listen [::]:443 ssl http2; | ||
ssl_certificate /path/to/ssl/cert.crt; | ||
ssl_certificate_key /path/to/ssl/cert.key; | ||
location / { | ||
proxy_pass http://url-of-your-mercure-hub; | ||
proxy_read_timeout 24h; | ||
proxy_http_version 1.1; | ||
proxy_set_header Connection ""; | ||
## Be sure to set USE_FORWARDED_HEADERS=1 to allow the hub to use those headers ## | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
proxy_set_header X-Forwarded-Host $host; | ||
proxy_set_header X-Forwarded-Proto $scheme; | ||
} | ||
} | ||
``` |