Skip to content

Commit

Permalink
简单又快乐自动https
Browse files Browse the repository at this point in the history
  • Loading branch information
duolabmeng6 committed Oct 18, 2023
1 parent 5147889 commit 1664e55
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 5 deletions.
9 changes: 9 additions & 0 deletions GoEasyDesigner/ssh_nginx/Caddyfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
go.kenhong.com {
root * /srv
encode {
zstd
gzip 9
}
file_server
}

22 changes: 17 additions & 5 deletions GoEasyDesigner/ssh_nginx/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,24 @@ services:
- ${SSH_PORT}:2222
restart: unless-stopped

nginx:
image: nginx:latest
caddy:
image: caddy:2-alpine
ports:
- "80:80"
- "443:443"
- "443:443/udp"
volumes:
- ./www:/usr/share/nginx/html
- /root/.acme.sh/go.kenhong.com:/etc/nginx/certs
- ./default.conf:/etc/nginx/conf.d/default.conf
- ./Caddyfile:/etc/caddy/Caddyfile
- ./www:/srv
- ./caddy_data:/data
- ./caddy_config:/config
# nginx:
# image: nginx:latest
# ports:
# - "80:80"
# - "443:443"
# volumes:
# - ./www:/usr/share/nginx/html
# - /root/.acme.sh/go.kenhong.com:/etc/nginx/certs
# - ./default.conf:/etc/nginx/conf.d/default.conf

0 comments on commit 1664e55

Please sign in to comment.