Browse Source
Merge pull request #233 from Toucan-Sam/patch-2
Update PROXY.md
pull/236/head
Daniel García
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
9 additions and
10 deletions
-
PROXY.md
|
|
@ -31,18 +31,13 @@ localhost:443 { |
|
|
|
## Nginx (by shauder) |
|
|
|
```nginx |
|
|
|
server { |
|
|
|
include conf.d/ssl/ssl.conf; |
|
|
|
|
|
|
|
listen 443 ssl http2; |
|
|
|
server_name vault.*; |
|
|
|
|
|
|
|
location /notifications/hub/negotiate { |
|
|
|
include conf.d/proxy-confs/proxy.conf; |
|
|
|
proxy_pass http://<SERVER>:80; |
|
|
|
} |
|
|
|
# Specify SSL config if using a shared one. |
|
|
|
#include conf.d/ssl/ssl.conf; |
|
|
|
|
|
|
|
location / { |
|
|
|
include conf.d/proxy-confs/proxy.conf; |
|
|
|
proxy_pass http://<SERVER>:80; |
|
|
|
} |
|
|
|
|
|
|
@ -51,6 +46,10 @@ server { |
|
|
|
proxy_set_header Upgrade $http_upgrade; |
|
|
|
proxy_set_header Connection "upgrade"; |
|
|
|
} |
|
|
|
|
|
|
|
location /notifications/hub/negotiate { |
|
|
|
proxy_pass http://<SERVER>:80; |
|
|
|
} |
|
|
|
} |
|
|
|
``` |
|
|
|
|
|
|
|