Update README.md

This commit is contained in:
Arthur Lu 2023-02-28 20:48:44 -08:00 committed by GitHub
parent d7e835b3c5
commit ae3af947df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,7 +38,7 @@ The supported setup is to use a reverse proxy to serve both the original Proxmox
After this step, the Client should be available at `PAAS Client Host` on port `80` After this step, the Client should be available at `PAAS Client Host` on port `80`
## Installation - Reverse Proxy ## Installation - Reverse Proxy
1. Configure nginx to reverse proxy the default Proxmox web UI, the example below also includes configuration for SSL. **Note the add_header directives, which are required in order to use the proxmox API correctly**: 1. Configure nginx to reverse proxy the default Proxmox web UI, the example below also includes configuration for SSL.
``` ```
server { server {
listen 80; listen 80;
@ -53,19 +53,6 @@ server {
ssl_certificate_key <privkey.pem>; ssl_certificate_key <privkey.pem>;
include /etc/nginx/snippets/ssl-params.conf; include /etc/nginx/snippets/ssl-params.conf;
proxy_redirect off; proxy_redirect off;
location / {
if ($request_method = OPTIONS) {
add_header 'ALLOW' 'GET, POST, DELETE, OPTIONS' always;
add_header 'Access-Control-Allow-Origin' '$http_origin' always;
add_header 'Access-Control-Allow-Credentials' 'true' always;
add_header 'Access-Control-Allow-Methods' 'GET, POST, DELETE, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'CSRFPreventionToken';
return 200;
}
add_header 'Access-Control-Allow-Origin' '$http_origin' always;
add_header 'Access-Control-Allow-Credentials' 'true' always;
add_header 'Access-Control-Allow-Methods' 'GET, POST, DELETE, OPTIONS';
add_header 'AAccess-Control-Allow-Headers' 'CSRFPreventionToken';
proxy_http_version 1.1; proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade"; proxy_set_header Connection "upgrade";