Skip to content

Commit

Permalink
💚 use nginx proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
ali-bouali committed Apr 9, 2024
1 parent 8d1776f commit 0d8f4d6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion book-network-ui/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ http {

# Backend reverse proxy
location /api {
proxy_pass http://bsn-api:8088;
proxy_pass http://localhost:8088;
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
2 changes: 1 addition & 1 deletion book-network-ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "book-network-ui",
"version": "1.0.4",
"version": "1.0.5",
"scripts": {
"ng": "ng",
"start": "ng serve",
Expand Down
2 changes: 1 addition & 1 deletion book-network-ui/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import {ApiModule} from './services/api.module';
FormsModule,
HttpClientModule,
CodeInputModule,
ApiModule.forRoot({rootUrl: 'http://bsn-api:8088/api/v1'})
ApiModule.forRoot({rootUrl: 'http://localhost:8088/api/v1'})
],
providers: [
HttpClient,
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ services:

bsn-ui:
container_name: bsn-ui
image: alibouali/bsn-ui:1.0.4
image: alibouali/bsn-ui:1.0.5
ports:
- 8080:80
networks:
Expand Down

0 comments on commit 0d8f4d6

Please sign in to comment.