Skip to content

Commit

Permalink
fix: 临时修复 ldap 错误
Browse files Browse the repository at this point in the history
  • Loading branch information
wojiushixiaobai committed Jul 4, 2024
1 parent 9e26c89 commit 972f5b2
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 27 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
git clone --depth=1 https://github.com/jumpserver/Dockerfile.git
cd Dockerfile
cp config_example.conf .env
docker compose -f docker-compose-network.yml -f docker-compose-redis.yml -f docker-compose-mariadb.yml -f docker-compose-init-db.yml up -d
docker compose -f docker-compose-network.yml -f docker-compose-redis.yml -f docker-compose-mariadb.yml -f docker-compose-init-db.yml up
docker compose -f docker-compose-network.yml -f docker-compose-redis.yml -f docker-compose-mariadb.yml -f docker-compose.yml up -d

docker rm jms_init_db
Expand Down Expand Up @@ -106,7 +106,7 @@ SSH_PORT=2222
# BOOTSTRAP_TOKEN 为组件认证使用的密钥, 仅组件注册时使用。组件指 koko, lion, magnus, kael, chen ...
```
```sh
docker compose -f docker-compose-network.yml -f docker-compose-init-db.yml up -d
docker compose -f docker-compose-network.yml -f docker-compose-init-db.yml up
docker compose -f docker-compose-network.yml -f docker-compose.yml up -d

docker rm jms_init_db
Expand Down
4 changes: 2 additions & 2 deletions README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
git clone --depth=1 https://github.com/jumpserver/Dockerfile.git
cd Dockerfile
cp config_example.conf .env
docker compose -f docker-compose-network.yml -f docker-compose-redis.yml -f docker-compose-mariadb.yml -f docker-compose-init-db.yml up -d
docker compose -f docker-compose-network.yml -f docker-compose-redis.yml -f docker-compose-mariadb.yml -f docker-compose-init-db.yml up
docker compose -f docker-compose-network.yml -f docker-compose-redis.yml -f docker-compose-mariadb.yml -f docker-compose.yml up -d

docker rm jms_init_db
Expand Down Expand Up @@ -106,7 +106,7 @@ SSH_PORT=2222
# BOOTSTRAP_TOKEN is the key used for component authentication, only used when the component is registered. The components refer to koko, lion, magnus, kael, chen ...
```
```sh
docker compose -f docker-compose-network.yml -f docker-compose-init-db.yml up -d
docker compose -f docker-compose-network.yml -f docker-compose-init-db.yml up
docker compose -f docker-compose-network.yml -f docker-compose.yml up -d

docker rm jms_init_db
Expand Down
10 changes: 0 additions & 10 deletions allinone/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -93,16 +93,6 @@ http {
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /kael/ {
proxy_pass http://127.0.0.1:8083;
proxy_buffering off;
proxy_http_version 1.1;
proxy_request_buffering off;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /ws/ {
proxy_pass http://127.0.0.1:8080;
proxy_buffering off;
Expand Down
7 changes: 4 additions & 3 deletions core/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ ARG TARGETARCH
ARG DEPENDENCIES=" \
ca-certificates \
git \
git-lfs \
wget"

RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
Expand Down Expand Up @@ -42,7 +43,7 @@ RUN set -e \
&& chmod +x /opt/jumpserver/entrypoint.sh \
&& rm -rf /opt/jumpserver/.git /opt/jumpserver/.github

FROM python:3.11-slim-bullseye as stage-2
FROM python:3.11-slim-bookworm as stage-2
ARG TARGETARCH

ARG BUILD_DEPENDENCIES=" \
Expand All @@ -66,7 +67,6 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
&& apt-get update \
&& apt-get -y install --no-install-recommends ${BUILD_DEPENDENCIES} \
&& apt-get -y install --no-install-recommends ${DEPENDENCIES} \
&& apt-get -y install --no-install-recommends ${TOOLS} \
&& echo "no" | dpkg-reconfigure dash

WORKDIR /opt
Expand All @@ -77,7 +77,8 @@ ENV PYTHONUNBUFFERED=1 \

RUN --mount=type=cache,target=/root/.cache,sharing=locked \
set -e \
&& pip install poetry
&& pip install poetry \
&& poetry config virtualenvs.create false

WORKDIR /opt/jumpserver

Expand Down
10 changes: 0 additions & 10 deletions web/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -100,16 +100,6 @@ http {
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /kael/ {
proxy_pass http://kael:8083;
proxy_buffering off;
proxy_http_version 1.1;
proxy_request_buffering off;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /ws/ {
proxy_pass http://core:8080;
proxy_buffering off;
Expand Down

0 comments on commit 972f5b2

Please sign in to comment.