Skip to content

Commit

Permalink
fix: update caddy configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
aseerkt committed Aug 9, 2024
1 parent 4f4067d commit 98ac509
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ec2-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
name: mchat_build

- name: Move static files
run: mv web/dist /var/www/html
run: sudo mv web/dist /var/www/html

- name: Restart application
run: pm2 restart mchat
Expand Down
2 changes: 1 addition & 1 deletion infra/ec2/Caddyfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
mchat.aseerkt.com {
encode zstd gzip
file_server
file_server /dist/*
reverse_proxy /api/* 127.0.0.1:5000
}
9 changes: 1 addition & 8 deletions infra/ec2/docker-compose.prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,4 @@ services:
- '443:443'
- '443:443/udp'
volumes:
- $PWD/Caddyfile:/etc/caddy/Caddyfile
- caddy_data:/data
- caddy_config:/config

volumes:
caddy_data:
external: true
caddy_config:
- ./Caddyfile:/etc/caddy/Caddyfile

0 comments on commit 98ac509

Please sign in to comment.