summaryrefslogtreecommitdiffstats
path: root/docker-compose/glances.conf
diff options
context:
space:
mode:
authornicolargo <nicolashennion@gmail.com>2024-06-01 10:38:40 +0200
committernicolargo <nicolashennion@gmail.com>2024-06-01 10:38:40 +0200
commit6410ccab9b188128286267efe171979c7140936c (patch)
treefadbaf38956cfcdae177479274a4b9f9aa383051 /docker-compose/glances.conf
parent350318fb6e1b13326db2ea3081831d2eb349070b (diff)
Make CORS option configurable #2812
Diffstat (limited to 'docker-compose/glances.conf')
-rwxr-xr-xdocker-compose/glances.conf17
1 files changed, 17 insertions, 0 deletions
diff --git a/docker-compose/glances.conf b/docker-compose/glances.conf
index 0686b528..3d073744 100755
--- a/docker-compose/glances.conf
+++ b/docker-compose/glances.conf
@@ -23,12 +23,16 @@ history_size=1200
##############################################################################
[outputs]
+# Options for all UIs
+#--------------------
# Separator in the Curses and WebUI interface (between top and others plugins)
separator=True
# Set the the Curses and WebUI interface left menu plugin list (comma-separated)
#left_menu=network,wifi,connections,ports,diskio,fs,irq,folders,raid,smart,sensors,now
# Limit the number of processes to display (in the WebUI)
max_processes_display=25
+# Options for WebUI
+#------------------
# Set URL prefix for the WebUI and the API
# Example: url_prefix=/glances/ => http://localhost/glances/
# Note: The final / is mandatory
@@ -41,6 +45,19 @@ max_processes_display=25
# then configure this folder with the webui_root_path key
# Default is folder where glances_restfull_api.py is hosted
#webui_root_path=
+# CORS options
+# Comma separated list of origins that should be permitted to make cross-origin requests.
+# Default is *
+#cors_origins=*
+# Indicate that cookies should be supported for cross-origin requests.
+# Default is True
+#cors_credentials=True
+# Comma separated list of HTTP methods that should be allowed for cross-origin requests.
+# Default is *
+#cors_methods=*
+# Comma separated list of HTTP request headers that should be supported for cross-origin requests.
+# Default is *
+#cors_headers=*
##############################################################################
# plugins