Skip to content

Commit 47e4bd4

Browse files
committed
[cut] ssl certificates
1 parent 0fa5cff commit 47e4bd4

File tree

4 files changed

+2
-16
lines changed

4 files changed

+2
-16
lines changed

arch.dockerfile

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
zip \
3131
tar \
3232
yarn \
33-
openssl \
3433
upx;
3534

3635
RUN set -ex; \
@@ -55,12 +54,7 @@
5554

5655
RUN set -ex; \
5756
mkdir -p /distroless/usr/local/bin; \
58-
mkdir -p /distroless/${APP_ROOT}/etc/ssl; \
5957
mkdir -p /distroless/${APP_ROOT}/opt; \
60-
openssl req -x509 -newkey rsa:4096 -subj "/C=XX/ST=XX/L=XX/O=XX/OU=docker/CN=adguard" \
61-
-keyout "/distroless/${APP_ROOT}/etc/ssl/default.key" \
62-
-out "/distroless/${APP_ROOT}/etc/ssl/default.crt" \
63-
-days 3650 -nodes -sha256 &> /dev/null; \
6458
eleven strip ${BUILD_BIN}; \
6559
cp ${BUILD_BIN} /distroless/usr/local/bin;
6660

compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ services:
1111
ports:
1212
- "53:53/udp"
1313
- "53:53/tcp"
14-
- "8443:8443/tcp"
14+
- "3000:3000/tcp"
1515
networks:
1616
frontend:
1717
sysctls:

project.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,4 @@ ${{ content_tips }}
5151

5252
${{ title_caution }}
5353
${{ github:> [!CAUTION] }}
54-
${{ github:> }}* This image comes with a default SSL certificate. If you plan to expose the web interface via HTTPS, please replace the default certificate with your own.
5554
${{ github:> }}* This image comes with a default configuration with a default password for the admin account. Please set your own password or provide your own configuration.

rootfs/adguard/etc/config.yaml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,7 @@ users:
2727
auth_attempts: 3
2828
block_auth_min: 60
2929
tls:
30-
enabled: true
31-
server_name: ""
32-
force_https: true
33-
port_https: 8443
34-
certificate_chain: ""
35-
private_key: ""
36-
certificate_path: /adguard/etc/ssl/default.crt
37-
private_key_path: /adguard/etc/ssl/default.key
30+
enabled: false
3831
filtering:
3932
blocking_mode: nxdomain
4033
cache_time: 1440

0 commit comments

Comments
 (0)