Skip to content
Snippets Groups Projects
Commit cc748bef authored by Andrew Kapuscinski's avatar Andrew Kapuscinski
Browse files

modified nginx conf to correctly proxy frontend to capability srv on ws-dev

parent e2c747fb
No related branches found
No related tags found
1 merge request!130Update ui nginx ws dev
Pipeline #964 passed
# Workspaces NGINX config
server {
listen 80;
server_name shipman.aoc.nrao.edu;
listen 80;
root /usr/share/nginx/html;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
index index.html index.htm;
try_files $uri $uri/ /index.html;
}
location ^/capability/(.*) {
proxy_redirect off;
proxy_pass http://shipman.aoc.nrao.edu:3457;
proxy_set_header Origin http://shipman.aoc.nrao.edu:4444;
proxy_hide_header Access-Control-Allow-Origin;
add_header Access-Control-Allow-Origin *;
location /capability {
proxy_pass http://capability:3457;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
error_page 500 502 503 504 /50x.html;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
root /usr/share/nginx/html;
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment