浏览代码

chore(demo): update config

Jacky 3 周之前
父节点
当前提交
acf2d13ded
共有 2 个文件被更改,包括 16 次插入0 次删除
  1. 3 0
      demo.Dockerfile
  2. 13 0
      resources/demo/stub_status_nginx-ui.conf

+ 3 - 0
demo.Dockerfile

@@ -6,7 +6,9 @@ ARG TARGETVARIANT
 WORKDIR /app
 EXPOSE 80
 
+# copy demo config
 COPY resources/demo/ojbk.me /etc/nginx/sites-available/ojbk.me
+RUN ln -s /etc/nginx/sites-available/ojbk.me /etc/nginx/sites-enabled/ojbk.me
 COPY resources/demo/app.ini /etc/nginx-ui/app.ini
 COPY resources/demo/demo.db /etc/nginx-ui/database.db
 
@@ -18,6 +20,7 @@ RUN echo 'longrun' > /etc/s6-overlay/s6-rc.d/nginx-ui/type && \
 # copy nginx config
 COPY resources/docker/nginx.conf /etc/nginx/nginx.conf
 COPY resources/docker/nginx-ui.conf /etc/nginx/conf.d/nginx-ui.conf
+COPY resources/demo/stub_status_nginx-ui.conf /etc/nginx/conf.d/stub_status_nginx-ui.conf
 
 # copy nginx-ui executable binary
 COPY nginx-ui-$TARGETOS-$TARGETARCH$TARGETVARIANT/nginx-ui /usr/local/bin/nginx-ui

+ 13 - 0
resources/demo/stub_status_nginx-ui.conf

@@ -0,0 +1,13 @@
+# DO NOT EDIT THIS FILE, IT IS AUTO GENERATED BY NGINX-UI
+# Nginx stub_status configuration for Nginx-UI
+# Modified at 2025-04-11 08:26:43
+server {
+    listen 51820;
+    server_name localhost;
+    # Status monitoring interface
+    location /stub_status {
+        stub_status;
+        allow 127.0.0.1;
+        deny all;
+    }
+}