fix: 修正

This commit is contained in:
zxr
2026-07-31 18:27:53 +08:00
parent 2d4e9b1a7c
commit 6fbf857bfa
8 changed files with 56 additions and 35 deletions

View File

@@ -1,11 +0,0 @@
server {
listen 443 ssl;
server_name _;
ssl_certificate /etc/nginx/tls/ops-licence.crt;
ssl_certificate_key /etc/nginx/tls/ops-licence.key;
location / {
proxy_pass http://127.0.0.1:8080;
}
}

View File

@@ -4,10 +4,8 @@ After=network.target
[Service]
Type=simple
User=ops-licence
Group=ops-licence
WorkingDirectory=/var/lib/ops-licence
ExecStart=/usr/local/bin/ops-licence serve --config /etc/ops-licence/ops-licence.yaml
WorkingDirectory=/data/app
ExecStart=/data/app/ops-licence serve --config /data/app/etc/license.yaml
Restart=on-failure
[Install]

View File

@@ -0,0 +1,4 @@
licence.apinb.com {
tls /data/licence/apinb.com.pem /data/licence/apinb.com.key
reverse_proxy 127.0.0.1:14522
}

11
deploy/ops-license.conf Normal file
View File

@@ -0,0 +1,11 @@
server {
listen 443 ssl;
server_name licence.apinb.com;
ssl_certificate /data/licence/apinb.com.pem;
ssl_certificate_key /data/licence/apinb.com.key;
location / {
proxy_pass http://127.0.0.1:14522;
}
}