Skip to content

Commit

Permalink
fix: nginx setting
Browse files Browse the repository at this point in the history
  • Loading branch information
Walkers15 committed Jan 30, 2024
1 parent 72a1919 commit 9cde169
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
version: '3'
services:
web:
platform: linux/amd64
container_name: web
image: leeseolhui/server-web
expose:
Expand All @@ -14,12 +15,15 @@ services:
condition: service_healthy

nginx:
platform: linux/amd64
container_name: nginx
image: leeseolhui/server-nginx
ports:
- 80:80
depends_on:
- web
volumes:
- /etc/letsencrypt:/etc/letsencrypt

redis:
container_name: redis
Expand Down
8 changes: 4 additions & 4 deletions nginx/conf.d/nginx.conf
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
server {
listen 80;
server_name bbok.o-r.kr;
server_name bbok.kro.kr;
return 301 https://$host$request_uri;
}

server {
listen 443 ssl;
server_name bbok.o-r.kr;
server_name bbok.kro.kr;

ssl_certificate /etc/letsencrypt/live/bbok.o-r.kr/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/bbok.o-r.kr/privkey.pem;
ssl_certificate /etc/letsencrypt/live/bbok.kro.kr/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/bbok.kro.kr/privkey.pem;

location / {
proxy_pass http://web:8080;
Expand Down

0 comments on commit 9cde169

Please sign in to comment.