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 a211f25
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,19 @@ services:
image: ghcr.io/kasterra/koj-client:latest
ports:
- 1705:3000
networks:
- webnet
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://frontend: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 a211f25

Please sign in to comment.