mirror of
https://github.com/QYG2297248353/appstore-1panel.git
synced 2026-06-16 01:02:14 +08:00
Processed apps directory via GitHub Actions
This commit is contained in:
@@ -14,7 +14,7 @@ PANEL_APP_PORT_ADMIN=8081
|
||||
PANEL_APP_PORT_API=8082
|
||||
|
||||
# 管理员用户名 [必填]
|
||||
DJ_DEFAULT_ADMIN_USERNAME=
|
||||
DJ_DEFAULT_ADMIN_USERNAME=admin
|
||||
|
||||
# 管理员密码 [必填]
|
||||
DJ_DEFAULT_ADMIN_PASSWORD=
|
||||
@@ -45,7 +45,7 @@ additionalProperties:
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: ""
|
||||
- default: "admin"
|
||||
edit: true
|
||||
envKey: DJ_DEFAULT_ADMIN_USERNAME
|
||||
labelZh: 管理员用户名
|
||||
+3
-3
@@ -11,7 +11,7 @@ services:
|
||||
condition: service_healthy
|
||||
environment:
|
||||
- TZ=Asia/Shanghai
|
||||
image: dujiaonext/admin:v0.1.1
|
||||
image: dujiaonext/admin:v0.1.2
|
||||
networks:
|
||||
- dujiao-net
|
||||
ports:
|
||||
@@ -36,7 +36,7 @@ services:
|
||||
- -qO-
|
||||
- http://127.0.0.1:8080/health
|
||||
timeout: 3s
|
||||
image: dujiaonext/api:v0.1.1
|
||||
image: dujiaonext/api:v0.1.2
|
||||
labels:
|
||||
createdBy: Apps
|
||||
networks:
|
||||
@@ -56,7 +56,7 @@ services:
|
||||
condition: service_healthy
|
||||
environment:
|
||||
- TZ=Asia/Shanghai
|
||||
image: dujiaonext/user:v0.1.1
|
||||
image: dujiaonext/user:v0.1.2
|
||||
networks:
|
||||
- dujiao-net
|
||||
ports:
|
||||
@@ -22,6 +22,8 @@ API/User/Admin 三端分层清晰,便于二开与替换前台模板。
|
||||
|
||||
## 安装
|
||||
|
||||
> 请注意 `管理员用户名` 为 `admin`,请勿修改。否则将无法登录后台管理。
|
||||
|
||||
JWT 推荐使用 `openssl` 生成密钥:
|
||||
|
||||
```bash
|
||||
@@ -30,6 +32,78 @@ openssl rand -hex 32
|
||||
|
||||
## 反向代理
|
||||
|
||||
### 多域名部署
|
||||
|
||||
```nginx
|
||||
# 前台 User
|
||||
server {
|
||||
listen 80;
|
||||
server_name user.example.com;
|
||||
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:8081;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
|
||||
location /api/ {
|
||||
proxy_pass http://127.0.0.1:8080/api/;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
|
||||
location /uploads/ {
|
||||
proxy_pass http://127.0.0.1:8080/uploads/;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
}
|
||||
|
||||
# 后台 Admin
|
||||
server {
|
||||
listen 80;
|
||||
server_name admin.example.com;
|
||||
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:8082;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
|
||||
location /api/ {
|
||||
proxy_pass http://127.0.0.1:8080/api/;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
|
||||
location /uploads/ {
|
||||
proxy_pass http://127.0.0.1:8080/uploads/;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### 单域名部署
|
||||
|
||||
不推荐
|
||||
|
||||
> 由于前台 User 与 Admin 分别部署在不同端口,因此需要配置反向代理。
|
||||
>
|
||||
> 但是后台 /admin 属于 `/admin/` 路径,需要特殊处理。(否则无法正常访问资源,导致无法登录)
|
||||
|
||||
```nginx
|
||||
server {
|
||||
listen 80;
|
||||
@@ -75,6 +149,20 @@ server {
|
||||
}
|
||||
```
|
||||
|
||||
#### 补充规则
|
||||
|
||||
```nginx
|
||||
location /assets/ {
|
||||
|
||||
if ($http_referer ~* "/admin/") {
|
||||
proxy_pass http://127.0.0.1:57143;
|
||||
break;
|
||||
}
|
||||
|
||||
proxy_pass http://127.0.0.1:57142;
|
||||
}
|
||||
```
|
||||
|
||||
---
|
||||
|
||||

|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@ services:
|
||||
- TZ=Asia/Shanghai
|
||||
- PUID=1000
|
||||
- PGID=1000
|
||||
image: linuxserver/jackett:0.24.1385
|
||||
image: linuxserver/jackett:0.24.1392
|
||||
labels:
|
||||
createdBy: Apps
|
||||
networks:
|
||||
+1
-1
@@ -17,7 +17,7 @@ services:
|
||||
- NC_SMTP_SECURE=true
|
||||
- NC_SMTP_IGNORE_TLS=false
|
||||
- NC_DB=${DB_TYPE}://${DB_HOSTNAME}:${DB_PORT}?u=${DB_USER}&p=${DB_PASSWD}&d=${DB_NAME}
|
||||
image: nocodb/nocodb:0.301.3
|
||||
image: nocodb/nocodb:0.301.4
|
||||
labels:
|
||||
createdBy: Apps
|
||||
networks:
|
||||
@@ -14,7 +14,7 @@ PANEL_APP_PORT_ADMIN=8081
|
||||
PANEL_APP_PORT_API=8082
|
||||
|
||||
# 管理员用户名 [必填]
|
||||
DJ_DEFAULT_ADMIN_USERNAME=
|
||||
DJ_DEFAULT_ADMIN_USERNAME=admin
|
||||
|
||||
# 管理员密码 [必填]
|
||||
DJ_DEFAULT_ADMIN_PASSWORD=
|
||||
|
||||
@@ -11,7 +11,7 @@ services:
|
||||
condition: service_healthy
|
||||
environment:
|
||||
- TZ=Asia/Shanghai
|
||||
image: dujiaonext/admin:v0.1.1
|
||||
image: dujiaonext/admin:v0.1.2
|
||||
networks:
|
||||
- dujiao-net
|
||||
ports:
|
||||
@@ -36,7 +36,7 @@ services:
|
||||
- -qO-
|
||||
- http://127.0.0.1:8080/health
|
||||
timeout: 3s
|
||||
image: dujiaonext/api:v0.1.1
|
||||
image: dujiaonext/api:v0.1.2
|
||||
labels:
|
||||
createdBy: Apps
|
||||
networks:
|
||||
@@ -56,7 +56,7 @@ services:
|
||||
condition: service_healthy
|
||||
environment:
|
||||
- TZ=Asia/Shanghai
|
||||
image: dujiaonext/user:v0.1.1
|
||||
image: dujiaonext/user:v0.1.2
|
||||
networks:
|
||||
- dujiao-net
|
||||
ports:
|
||||
|
||||
@@ -11,7 +11,7 @@ services:
|
||||
- TZ=Asia/Shanghai
|
||||
- PUID=1000
|
||||
- PGID=1000
|
||||
image: linuxserver/jackett:0.24.1385
|
||||
image: linuxserver/jackett:0.24.1392
|
||||
labels:
|
||||
createdBy: Apps
|
||||
networks:
|
||||
|
||||
@@ -17,7 +17,7 @@ services:
|
||||
- NC_SMTP_SECURE=true
|
||||
- NC_SMTP_IGNORE_TLS=false
|
||||
- NC_DB=${DB_TYPE}://${DB_HOSTNAME}:${DB_PORT}?u=${DB_USER}&p=${DB_PASSWD}&d=${DB_NAME}
|
||||
image: nocodb/nocodb:0.301.3
|
||||
image: nocodb/nocodb:0.301.4
|
||||
labels:
|
||||
createdBy: Apps
|
||||
networks:
|
||||
|
||||
Reference in New Issue
Block a user