Skip to content

Commit

Permalink
Merge pull request #4 from jlord31/dev
Browse files Browse the repository at this point in the history
v1
  • Loading branch information
jlord31 authored Sep 1, 2022
2 parents f66980d + 4b90f61 commit 999d6f0
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 59 deletions.
4 changes: 2 additions & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ services:
AWS_PROFILE: $AWS_PROFILE
AWS_BUCKET: $AWS_BUCKET
JWT_SECRET: $JWT_SECRET
URL: "http://localhost:8100"
URL: "http://localhost:8080"
backend-feed:
image: udagram-api-feed:latest
volumes:
Expand All @@ -33,7 +33,7 @@ services:
AWS_PROFILE: $AWS_PROFILE
AWS_BUCKET: $AWS_BUCKET
JWT_SECRET: $JWT_SECRET
URL: "http://localhost:8100"
URL: "http://localhost:8080"
frontend:
image: udagram-frontend:local
ports:
Expand Down
2 changes: 1 addition & 1 deletion udagram-api-feed/backend-feed-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spec:
app: udagram-api-feed
spec:
containers:
- name: udagram-api-feed
- name: backend-feed
image: jlord31/udagram-api-feed:v1
ports:
- containerPort: 8080
Expand Down
2 changes: 1 addition & 1 deletion udagram-api-user/backend-user-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spec:
app: udagram-user-feed
spec:
containers:
- name: udagram-user-feed
- name: backend-user
image: jlord31/udagram-api-user:v1
ports:
- containerPort: 8080
Expand Down
52 changes: 1 addition & 51 deletions udagram-frontend/frontend-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,54 +19,4 @@ spec:
image: jlord31/udagram-frontend:v1
ports:
- containerPort: 8100
env:
- name: credentials
valueFrom:
secretKeyRef:
name: aws-secret
key: credentials
- name: POSTGRES_USERNAME
valueFrom:
secretKeyRef:
name: env-secret
key: POSTGRES_USERNAME
- name: POSTGRES_PASSWORD
valueFrom:
secretKeyRef:
name: env-secret
key: POSTGRES_PASSWORD
- name: POSTGRES_HOST
valueFrom:
configMapKeyRef:
name: env-configmap
key: POSTGRES_HOST
- name: POSTGRES_DB
valueFrom:
configMapKeyRef:
name: env-configmap
key: POSTGRES_DB
- name: AWS_BUCKET
valueFrom:
configMapKeyRef:
name: env-configmap
key: AWS_BUCKET
- name: AWS_REGION
valueFrom:
configMapKeyRef:
name: env-configmap
key: AWS_REGION
- name: AWS_PROFILE
valueFrom:
configMapKeyRef:
name: env-configmap
key: AWS_PROFILE
- name: JWT_SECRET
valueFrom:
configMapKeyRef:
name: env-configmap
key: JWT_SECRET
- name: URL
valueFrom:
configMapKeyRef:
name: env-configmap
key: URL

6 changes: 3 additions & 3 deletions udagram-reverseproxy/nginx.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
worker_processes 1;
worker_processes 1;
events { worker_connections 1024; }
error_log /dev/stdout debug;
http {
Expand All @@ -13,14 +13,14 @@ http {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-NginX-Proxy true;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name;
proxy_set_header X-Forwarded-Host $server_name;
server {
listen 8080;
location /api/v0/feed {
proxy_pass http://feed;
}
location /api/v0/users {
proxy_pass http://user;
}
}
}
}
2 changes: 1 addition & 1 deletion udagram-reverseproxy/reverseproxy-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spec:
app: udagram-reverseproxy
spec:
containers:
- name: udagram-reverseproxy
- name: reverseproxy
image: jlord31/reverseproxy:v1
ports:
- containerPort: 8080
Expand Down

0 comments on commit 999d6f0

Please sign in to comment.