animeic-cd vor 1 Jahr
Ursprung
Commit
8e1120b038
2 geänderte Dateien mit 9 neuen und 3 gelöschten Zeilen
  1. 2 1
      docker-compose.yaml
  2. 7 2
      nginx/conf.d/default.conf

+ 2 - 1
docker-compose.yaml

@@ -15,7 +15,8 @@ services:
       - 8085:80
     volumes:
       - ./nginx/conf.d:/etc/nginx/conf.d
-      - ./nginx/www:/usr/share/nginx/html
+      # - ./nginx/www:/usr/share/nginx/html
+      - ./nginx/www:/root/www/html
 
     depends_on:
       - cr-svc

+ 7 - 2
nginx/conf.d/default.conf

@@ -2,12 +2,17 @@ server {
     listen       80;
     listen  [::]:80;
     server_name  localhost;
-    client_max_body_size 2048m;
+    client_max_body_size 8192m;
 
    #  error_page   500 502 503 504  /50x.html;
    #  location = /50x.html {
    #      root   /usr/share/nginx/html;
-   #  } 
+   #  }
+
+   location /admin {
+      root /root/www/html;
+      index index.html;
+   }
 
    # 用户
    location /user/ {