Skip to content

Commit

Permalink
change auth service port
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabi-02 committed Jan 18, 2024
1 parent 96976aa commit 00c34e4
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ services:
auth-service:
build: ./services/auth-service
ports:
- "8080:8080"
- "1337:1337"
depends_on:
- mongo
environment:
Expand Down
2 changes: 1 addition & 1 deletion services/auth-service/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ WORKDIR /usr/src/app
COPY package*.json ./
RUN npm ci
COPY . .
EXPOSE 8080
EXPOSE 1337
ENTRYPOINT ["npm", "start"]
2 changes: 1 addition & 1 deletion services/auth-service/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import * as dotenv from "dotenv";
dotenv.config();

const app = express();
const port = 8080; // default port to listen
const port = 1337; // default port to listen

if (!process.env.fusionAuthURL) {
console.error('Missing fusionAuthURL from .env');
Expand Down
2 changes: 1 addition & 1 deletion services/auth-service/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.0.2
v1.0.3
4 changes: 2 additions & 2 deletions services/default.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ server {

location /auth/ {

# route /auth/ to localhost:8080/ (root)
proxy_pass http://host.docker.internal:8080/;
# route /auth/ to localhost:1337/ (root)
proxy_pass http://host.docker.internal:1337/;

# rewrite /auth/ to / (root)
rewrite ^/auth/(.*) /$1 break;
Expand Down

0 comments on commit 00c34e4

Please sign in to comment.