Skip to content

Commit

Permalink
proxy adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
ninori9 committed Jan 5, 2025
1 parent 26bf340 commit e63217d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
10 changes: 9 additions & 1 deletion reverse-proxy/nginx.conf
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
server {
listen 80;
listen [::]:80;
server_name chatbot.ase.cit.tum.de www.chatbot.ase.cit.tum.de;

return 301 https://$host$request_uri;
}

server {
listen 443 ssl;
listen [::]:443 ssl;
Expand Down Expand Up @@ -35,7 +43,7 @@ server {
}

location /api/ {
proxy_pass http://angelos-server:9007/;
proxy_pass http://angelos-server:9007;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
Expand Down
4 changes: 4 additions & 0 deletions src/environments/environment.prod.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export const environment = {
production: true,
backendUrl: '/api'
};
2 changes: 1 addition & 1 deletion src/environments/environment.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const environment = {
production: false,
backendUrl: '/api',
backendUrl: 'http://localhost:9007/api',
angelosAppApiKey: 'SOME_SECRET_KEY'
};

0 comments on commit e63217d

Please sign in to comment.