Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docker_casdoor/work/script-setup-casdoor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ setup_casdoor() {
# && go test -v -run TestGetVersionInfo ./util/system_test.go ./util/system.go > version_info.txt \

echo "--> Building Frontend..." \
&& cd /tmp && corepack enable && yarn -v \
&& cd /tmp && npm install -g yarn && yarn -v \
&& cd /tmp/casdoor/web \
&& yarn set version berry && yarn install && yarn run build \
&& mv ./build*/* /opt/casdoor/web/build/
Expand Down
2 changes: 1 addition & 1 deletion docker_keycloak/work/script-setup-keycloak.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ source /opt/utils/script-utils.sh

setup_keycloak() {
# Install the latest (but not nightly) version of keycloak
VER_KEYCLOAK_MAJOR="26.3" \
VER_KEYCLOAK_MAJOR="26" \
&& VER_KEYCLOAK=$(curl -sL https://github.com/keycloak/keycloak/releases.atom | grep 'releases/tag' | grep -v nightly | grep "${VER_KEYCLOAK_MAJOR}" | head -1 | grep -Po '\d[\d.]+' ) \
&& URL_KEYCLOAK="https://github.com/keycloak/keycloak/releases/download/$VER_KEYCLOAK/keycloak-$VER_KEYCLOAK.tar.gz" \
&& echo "Downloading Keycloak version ${VER_KEYCLOAK} from: ${URL_KEYCLOAK}" \
Expand Down
25 changes: 21 additions & 4 deletions docker_openresty/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,21 @@ What's here:
- acme.sh
- lego

## Debug
## How to apply for certificates using ACME.sh

```shell
docker run -it --rm labnow/base bash
```bash
# docker exec -it svc-proxy-openresty bash (enter into the container)

docker build -t openresty --build-arg BASE_NAMESPACE=labnow .
cd /etc/nginx/ssl && ls -alh

# If you don't have any certs yet, set your DOMAIN list to DOMAINS
DOMAINS='a1.example.com a2.example.com a3.example.com'

# If you already have certs in this folder, run the command below to get a list of DOMAINS
DOMAINS=$(printf "%s\n" *.crt *.key 2>/dev/null | sed 's/\.[^.]*$//' | sort -u)


/opt/utils/script-acme-sh.sh '[email protected]' "${DOMAINS}"
```

## Custom Configs
Expand All @@ -29,3 +38,11 @@ You can add your custom configuration snippet files at /data/nginx/custom as fol
- `conf/server_stream.conf`: Included at the end of every stream server block
- `conf/server_stream_tcp.conf`: Included at the end of every TCP stream server block
- `conf/server_stream_udp.conf`: Included at the end of every UDP stream server block

## Debug

```bash
docker run -it --rm labnow/openresty bash

docker build -t openresty --build-arg BASE_NAMESPACE=labnow .
```