Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
env : nginx config
Browse files Browse the repository at this point in the history
  • Loading branch information
kasterra committed May 22, 2024
1 parent 1a5fa97 commit f18bae0
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,17 @@ services:
image: ghcr.io/kasterra/koj-client:latest
ports:
- 1705:3000
nginx:
container_name: nginx
image: nginx:latest
ports:
- "80:80"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
depends_on:
- frontend
networks:
- webnet

networks:
webnet:
17 changes: 17 additions & 0 deletions nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
events {}

http {
server {
listen 80;
server_name koj.kasterra.dev;

location / {
proxy_pass http://172.24.0.2:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}
}

0 comments on commit f18bae0

Please sign in to comment.