File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,5 +6,8 @@ RUN npm install
66COPY . .
77RUN npm run build
88
9- FROM nginxinc/nginx-unprivileged:stable-alpine
10- COPY --from=builder /app/dist /usr/share/nginx/html
9+ # FROM nginxinc/nginx-unprivileged:stable-alpine
10+ # COPY --from=builder /app/dist /usr/share/nginx/html
11+
12+ FROM joseluisq/static-web-server:latest
13+ COPY --from=builder /app/dist /public
Original file line number Diff line number Diff line change 1+ nanme : document
12services :
23 document :
34 image : ghcr.io/ranui/document:latest
45 container_name : document
56 ports :
6- - 8080:8080
7+ - 8080:80
8+ # 进阶配置
9+ # volumes:
10+ # # 证书
11+ # - 证书路径:/ssl
12+ # environment:
13+ # # 账号
14+ # # 格式用户名:密码,必须使用BCrypt密码哈希函数对密码进行编码。
15+ # # 获取BCrypt加密的结果,把加密结果中的$替换成$$转义。
16+ # SERVER_BASIC_AUTH: "用户名:BCrypt加密密码"
17+ # # 证书
18+ # SERVER_HTTP2_TLS: true
19+ # SERVER_HTTP2_TLS_CERT: 证书路径
20+ # SERVER_HTTP2_TLS_KEY: 私钥路径
Original file line number Diff line number Diff line change @@ -66,15 +66,40 @@ This project provides foundational services for document preview components in t
6666
6767``` bash
6868# docker run
69- docker run -d --name document -p 8080:8080 ghcr.io/ranui/document:latest
69+ docker run -d --name document -p 8080:80 ghcr.io/ranui/document:latest
7070
7171# docker compose
7272services:
7373 document:
7474 image: ghcr.io/ranui/document:latest
7575 container_name: document
7676 ports:
77- - 8080:8080
77+ - 8080:80
78+ ```
79+
80+ #### Advanced Configuration
81+
82+ ``` yaml
83+ nanme : document
84+ services :
85+ document :
86+ image : ghcr.io/ranui/document:latest
87+ container_name : document
88+ ports :
89+ - 8080:80
90+ # Advanced Configuration
91+ volumes :
92+ # Add certificates
93+ - certificate_path:/ssl
94+ environment :
95+ # Set account
96+ # Format username:password, password must be encoded using BCrypt hash function.
97+ # To get BCrypt encryption result, replace $ in the encrypted result with $$ for escaping.
98+ SERVER_BASIC_AUTH : " username:BCrypt_encrypted_password"
99+ # Use certificate
100+ SERVER_HTTP2_TLS : true
101+ SERVER_HTTP2_TLS_CERT : certificate_path
102+ SERVER_HTTP2_TLS_KEY : private_key_path
78103` ` `
79104
80105### Important Notes
Original file line number Diff line number Diff line change 6666
6767``` bash
6868# docker run
69- docker run -d --name document -p 8080:8080 ghcr.io/ranui/document:latest
69+ docker run -d --name document -p 8080:80 ghcr.io/ranui/document:latest
7070
7171# docker compose
7272services:
7373 document:
7474 image: ghcr.io/ranui/document:latest
7575 container_name: document
7676 ports:
77- - 8080:8080
77+ - 8080:80
78+ ```
79+
80+ #### 进阶配置
81+
82+ ``` yaml
83+ nanme : document
84+ services :
85+ document :
86+ image : ghcr.io/ranui/document:latest
87+ container_name : document
88+ ports :
89+ - 8080:80
90+ # 进阶配置
91+ volumes :
92+ # 添加证书
93+ - 证书路径:/ssl
94+ environment :
95+ # 设置账号
96+ # 格式用户名:密码,必须使用BCrypt密码哈希函数对密码进行编码。
97+ # 获取BCrypt加密的结果,把加密结果中的$替换成$$转义。
98+ SERVER_BASIC_AUTH : " 用户名:BCrypt加密密码"
99+ # 使用证书
100+ SERVER_HTTP2_TLS : true
101+ SERVER_HTTP2_TLS_CERT : 证书路径
102+ SERVER_HTTP2_TLS_KEY : 私钥路径
78103` ` `
79104
80105### 重要提示
You can’t perform that action at this time.
0 commit comments