Browse Source
Merge pull request #7411 from Budibase/fix/preview-endpoint-prod
Add preview endpoint to prod nginx conf
master
Andrew Kingston
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
0 deletions
-
hosting/nginx.prod.conf.hbs
|
|
|
@ -85,6 +85,10 @@ http { |
|
|
|
proxy_pass http://$apps:4002; |
|
|
|
} |
|
|
|
|
|
|
|
location /preview { |
|
|
|
proxy_pass http://$apps:4002; |
|
|
|
} |
|
|
|
|
|
|
|
location = / { |
|
|
|
proxy_pass http://$apps:4002; |
|
|
|
} |
|
|
|
@ -94,6 +98,7 @@ http { |
|
|
|
proxy_pass http://$watchtower:8080; |
|
|
|
} |
|
|
|
{{/if}} |
|
|
|
|
|
|
|
location ~ ^/(builder|app_) { |
|
|
|
proxy_http_version 1.1; |
|
|
|
proxy_set_header Connection $connection_upgrade; |
|
|
|
|