File tree Expand file tree Collapse file tree 2 files changed +22
-5
lines changed Expand file tree Collapse file tree 2 files changed +22
-5
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ setup_casdoor() {
2424 # && go test -v -run TestGetVersionInfo ./util/system_test.go ./util/system.go > version_info.txt \
2525
2626 echo " --> Building Frontend..." \
27- && cd /tmp && corepack enable && yarn -v \
27+ && cd /tmp && npm install -g yarn && yarn -v \
2828 && cd /tmp/casdoor/web \
2929 && yarn set version berry && yarn install && yarn run build \
3030 && mv ./build* /* /opt/casdoor/web/build/
Original file line number Diff line number Diff line change @@ -5,12 +5,21 @@ What's here:
55 - acme.sh
66 - lego
77
8- ## Debug
8+ ## How to apply for certificates using ACME.sh
99
10- ``` shell
11- docker run -it --rm labnow/base bash
10+ ``` bash
11+ # docker exec -it svc-proxy-openresty bash (enter into the container)
1212
13- docker build -t openresty --build-arg BASE_NAMESPACE=labnow .
13+ cd /etc/nginx/ssl && ls -alh
14+
15+ # If you don't have any certs yet, set your DOMAIN list to DOMAINS
16+ DOMAINS=' a1.example.com a2.example.com a3.example.com'
17+
18+ # If you already have certs in this folder, run the command below to get a list of DOMAINS
19+ DOMAINS=$( printf " %s\n" * .crt * .key 2> /dev/null | sed ' s/\.[^.]*$//' | sort -u)
20+
21+
22+ /opt/utils/script-acme-sh.sh
' [email protected] ' " ${DOMAINS} " 1423```
1524
1625## Custom Configs
@@ -29,3 +38,11 @@ You can add your custom configuration snippet files at /data/nginx/custom as fol
2938- ` conf/server_stream.conf ` : Included at the end of every stream server block
3039- ` conf/server_stream_tcp.conf ` : Included at the end of every TCP stream server block
3140- ` conf/server_stream_udp.conf ` : Included at the end of every UDP stream server block
41+
42+ ## Debug
43+
44+ ``` bash
45+ docker run -it --rm labnow/openresty bash
46+
47+ docker build -t openresty --build-arg BASE_NAMESPACE=labnow .
48+ ```
You can’t perform that action at this time.
0 commit comments