Skip to content

Commit be65fa5

Browse files
authoredDec 5, 2021
Merge pull request #2 from tdtgit/develop
Move LE folder to inside working folder
2 parents e56d3ff + 9ec8662 commit be65fa5

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed
 

‎.github/workflows/docker.yml

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
- cron: '0 7 * * *'
77
push:
88
branches: [ master, develop, feature/*, fix/* ]
9+
paths-ignore: [ 'README.md' ]
910

1011
jobs:
1112
run:

‎README.md

+17-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
11
# WIP - LVH (OpenLitespeed - Varnish - Haproxy)
2+
[![Test Docker Compose](https://github.com/tdtgit/LVH/actions/workflows/docker.yml/badge.svg)](https://github.com/tdtgit/LVH/actions/workflows/docker.yml)
23

3-
## First run
4-
```docker exec -it lvh_litespeed_1 /bin/sh /usr/local/lsws/admin/misc/admpass.sh```
4+
## How to use
5+
```docker-compose up -d```
6+
That's it!
7+
8+
## At the first run
9+
```docker-compose exec litespeed /bin/sh /usr/local/lsws/admin/misc/admpass.sh```
10+
11+
## Let's Encrypt SSL certificate request
12+
Run inside LVH directory:
13+
```
14+
docker run -it --rm --name certbot \
15+
-v "$(pwd)/letsencrypt:/etc/letsencrypt" \
16+
-v "/root/.cloudflare:/root/.cloudflare" \
17+
certbot/dns-cloudflare certonly --dns-cloudflare --dns-cloudflare-credentials /root/.cloudflare/cloudflare.ini \
18+
-d datuan.dev -d *.datuan.dev
19+
```

‎docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ services:
99
- ./ols/sites:/var/www/vhosts/
1010
- ./ols/acme:/root/.acme.sh/
1111
- ./ols/logs:/usr/local/lsws/logs/
12-
- /etc/letsencrypt:/etc/letsencrypt
12+
- ./letsencrypt:/etc/letsencrypt
1313
ports:
1414
- 443:443
1515
- 443:443/udp

0 commit comments

Comments
 (0)
Please sign in to comment.