Open isharailanga opened 2 years ago
The Configuring the Proxy Server and the Load Balancer doc needs more ngnix.conf configurations
ngnix.conf
Under HA for Gateway all these configs are required. The doc is missing a few:
upstream sslgw1.am.wso2.com { server 192.xxx.xxx.xx:9443; server 192.xxx.xxx.xx:9444; #ip_hash; sticky learn create=$upstream_cookie_jsessionid lookup=$cookie_jsessionid zone=client_sessions:1m; } upstream <lb_hostname> { server 192.xxx.xxx.xx:8243; server 192.xxx.xxx.xx:8244; } server { listen 80; server_name sslgw1.am.wso2.com; rewrite ^/(.*) https://sslgw1.am.wso2.com/$1 permanent; } server { listen 443 ssl; server_name <server_name>; proxy_set_header X-Forwarded-Port 443; ssl_certificate /etc/nginx/ssl/server.crt; ssl_certificate_key /etc/nginx/ssl/server.key; large_client_header_buffers 4 32k; location / { proxy_set_header X-Forwarded-Host $host; proxy_set_header X-Forwarded-Server $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_read_timeout 5m; proxy_send_timeout 5m; fastcgi_buffers 16 16k; fastcgi_buffer_size 38k; proxy_buffer_size 128k; proxy_buffers 4 256k; proxy_busy_buffers_size 256k; proxy_pass https://<lb_hostname>; proxy_redirect https://192.xxx.xxx.xx:9443 https://<lb_hostname>; proxy_redirect https://192.xxx.xxx.xx:9444 https://<lb_hostname>; } }
For more info, pls check https://docs.google.com/document/d/1IVNFdVPRKuSSfmlYDHUx4_4je-Wvhmc8qRYrjXnLMPk/edit# > point 6.4
In the same doc, need to add more details regarding the logs (access_log, error_log) mentioned in the document. Because, when we specify the log path as mentioned in the doc, it gives a file missing error.
Adding help wanted tag to verify these configs for API-M.
The Configuring the Proxy Server and the Load Balancer doc needs more
ngnix.conf
configurationsUnder HA for Gateway all these configs are required. The doc is missing a few:
For more info, pls check https://docs.google.com/document/d/1IVNFdVPRKuSSfmlYDHUx4_4je-Wvhmc8qRYrjXnLMPk/edit# > point 6.4
In the same doc, need to add more details regarding the logs (access_log, error_log) mentioned in the document. Because, when we specify the log path as mentioned in the doc, it gives a file missing error.