فهرست منبع

Moved the "individual ports" example into a separate file for advanced users.

jamesread 5 سال پیش
والد
کامیت
f442d3731a
2فایلهای تغییر یافته به همراه22 افزوده شده و 10 حذف شده
  1. 18 0
      var/config.individualPorts.yaml
  2. 4 10
      var/config.yaml

+ 18 - 0
var/config.individualPorts.yaml

@@ -0,0 +1,18 @@
+# This tells OliveTin to not spawn the internal micro reverse proxy. 
+#
+# This gives you more fine grained control, but requires quite a bit more setup. 
+# Most users will set this to "true" and use the built-in micro reverse proxy.
+useSingleHTTPFrontend: false
+
+# The WebUI is simply a static webserver. OliveTin comes with one builtin to
+# make things easy, but you can also host the "webui" directory on a static 
+# webserver.
+#listenAddressWebUI: 0.0.0.0:1340 
+
+# The REST API is used by the WebUI. 
+#listenAddressRestActions: 0.0.0.0:1338 
+
+# The gRPC API is unsed by the WebUI, and can also be limited to localhost:1339.
+#listenAddressGrpcActions: 0.0.0.0:1339 
+
+

+ 4 - 10
var/config.yaml

@@ -1,13 +1,7 @@
-# The WebUI is simply a static webserver. OliveTin comes with one builtin to
-# make things easy, but you can also host the "webui" directory on a static 
-# webserver.
-listenAddressWebUI: 0.0.0.0:1337 # Listen on all addresses available, port 1337
-
-# The REST API is used by the WebUI. 
-#listenAddressRestActions: 0.0.0.0:1338 
-
-# The gRPC API is unsed by the WebUI, and can also be limited to localhost:1339.
-#listenAddressGrpcActions: 0.0.0.0:1339 
+# There is a built-in micro proxy that will host the webui and REST API all on 
+# one port (this is called the "Single HTTP Frontend") and means you just need 
+# one open port in the container/firewalls/etc. 
+ListenAddressSingleHTTPFrontend: 0.0.0.0:1337 # Listen on all addresses available, port 1337
 
 
 # Choose from INFO (default), WARN and DEBUG
 # Choose from INFO (default), WARN and DEBUG
 logLevel: "INFO"
 logLevel: "INFO"