Browse Source

minor: 增加反向代理

Lenovo 6 ngày trước cách đây
mục cha
commit
7aea1058af

+ 1 - 0
INFO.sh

@@ -22,6 +22,7 @@ description_enu="This my sample package"
 description_cht="這是我的範例套件"
 #只有一个应用
 dsmuidir="ui"
+#多目录时可配置,需要修改脚本,复制对应的目录
 #dsmuidir="MyApp1:appui1 MyApp2:appui2"
 
 [ "$(caller)" != "0 NULL" ] && return 0

+ 0 - 11
appui1/config

@@ -1,11 +0,0 @@
-{
-  ".url": {
-    "com.mycompany.app": {
-      "type": "legacy",
-      "icon": "images/MyIcon_{0}.png",
-      "title": "Common Tools",
-      "url": "http://192.168.1.95:38080",
-      "allUsers": true
-    }
-  }
-}

+ 0 - 21
appui1/helptoc.conf

@@ -1,21 +0,0 @@
-{
-  "app": "com.mycompany.app",
-  "title": "com.mycompany.app",
-  "content": "testapp_index.html",
-  "toc": [
-    {
-      "title": "app_tree:node_1",
-      "content": "testapp_node1.html",
-      "nodes": [
-        {
-          "title": "app_tree:node_1_child",
-          "content": "testapp_node1_child.html"
-        }
-      ]
-    },
-    {
-      "title": "app_tree:node_2",
-      "content": "testapp_node2.html"
-    }
-  ]
-}

BIN
appui1/images/MyIcon_128.png


BIN
appui1/images/MyIcon_16.png


BIN
appui1/images/MyIcon_24.png


BIN
appui1/images/MyIcon_256.png


BIN
appui1/images/MyIcon_28.png


BIN
appui1/images/MyIcon_32.png


BIN
appui1/images/MyIcon_48.png


BIN
appui1/images/MyIcon_512.png


BIN
appui1/images/MyIcon_56.png


BIN
appui1/images/MyIcon_64.png


BIN
appui1/images/MyIcon_72.png


+ 0 - 10
appui1/index.html

@@ -1,10 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-    <meta charset="UTF-8">
-    <title>Title</title>
-</head>
-<body>
-不知道是不是这样,还是哪样
-</body>
-</html>

+ 26 - 0
conf/resource

@@ -1,6 +1,32 @@
 {
   "webservice": {
     "services": [
+      {
+        "service": "nginx-ui",
+        "display_name": "NginxUI",
+        "support_alias": true,
+        "support_server": true,
+        "type": "reverse_proxy",
+        "icon": "ui/icons/MyIcon_{0}.png",
+        "proxy_target": "http://127.0.0.1:38080",
+        "proxy_headers": [
+          {
+            "name": "host",
+            "value": "$host"
+          },
+          {
+            "name": "Upgrade",
+            "value": "$http_upgrade"
+          },
+          {
+            "name": "Connection",
+            "value": "$connection_upgrade"
+          }
+        ],
+        "connect_timeout": 60,
+        "read_timeout": 3600,
+        "send_timeout": 60
+      }
     ]
   }
 }

BIN
tools/pkgscripts-ng-DSM7.2.zip


+ 2 - 2
ui/config

@@ -4,7 +4,7 @@
       "type":"app",
       "version": "0.0.1",
       "desc": "测试App描述",
-      "icon": "icons/icon_{0}.png",
+      "icon": "icons/MyIcon_{0}.png",
       "title": "测试App",
       "texts": "texts",
       "allowMultiInstance": false,
@@ -15,7 +15,7 @@
     "com.mycompany.app.Demo": {
       "type": "lib",
       "title": "Web浏览器",
-      "icon": "icons/icon_{0}.png",
+      "icon": "icons/MyIcon_{0}.png",
       "texts": "texts",
       "depend": [
       ]

+ 11 - 0
ui/link/config

@@ -0,0 +1,11 @@
+{
+  ".url": {
+    "com.mycompany.app": {
+      "type": "app",
+      "icon": "icons/MyIcon_{0}.png",
+      "title": "Common Tools",
+      "url": "/webman/3rdparty/MyApplication/index.html",
+      "allUsers": true
+    }
+  }
+}