Skip to content

Commit

Permalink
update config (#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
alinaSielina authored Oct 6, 2023
2 parents 0452325 + a2ec27b commit ddeaef1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 17 deletions.
2 changes: 1 addition & 1 deletion backend/Squirrel.ConsoleApp/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
"BaseUrl": "http://localhost:44567"
},
"SignalRSettings": {
"HubConnectionUrl": "http://squirrel.northeurope.cloudapp.azure.com:5076/ConsoleAppHub"
"HubConnectionUrl": "http://squirrel.northeurope.cloudapp.azure.com:5076/sqlApi/ConsoleAppHub"
}
}
31 changes: 15 additions & 16 deletions frontend/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,26 @@ http {
server squirrel_notifier:5070;
}

upstream sqlApi {
server squirrel_sql:5076;
}
upstream sqlApi {
server squirrel_sql:5076;
}

server {
listen 80;
server_name squirrel.northeurope.cloudapp.azure.com;

location /sqlApi {
rewrite ^/sqlApi(.*)$ $1 break;

proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;

proxy_pass http://sqlApi;
}

location / {
return 301 https://$server_name$request_uri; # enforce https
}
Expand Down Expand Up @@ -74,18 +86,5 @@ http {

proxy_pass http://notifier;
}

location /sqlApi {
rewrite ^/sqlApi(.*)$ $1 break;

proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
proxy_set_header X-Forwarded-Proto $scheme;

proxy_pass http://sqlApi;
}
}
}

0 comments on commit ddeaef1

Please sign in to comment.