aboutsummaryrefslogtreecommitdiff
path: root/apps/VNLib.WebServer/release.taskfile.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'apps/VNLib.WebServer/release.taskfile.yaml')
-rw-r--r--apps/VNLib.WebServer/release.taskfile.yaml56
1 files changed, 56 insertions, 0 deletions
diff --git a/apps/VNLib.WebServer/release.taskfile.yaml b/apps/VNLib.WebServer/release.taskfile.yaml
new file mode 100644
index 0000000..86c2538
--- /dev/null
+++ b/apps/VNLib.WebServer/release.taskfile.yaml
@@ -0,0 +1,56 @@
+# https://taskfile.dev
+
+version: '3'
+
+vars:
+
+
+tasks:
+
+ default:
+ desc: "Runs the server in a default startup mode for production use"
+ vars:
+ ARGS: "--config ../config/config.json --input-off"
+
+ cmds:
+ - task: run
+ vars: { ARGS: '{{.ARGS}}' }
+
+ run-debug:
+ env:
+ VNLIB_SHARED_HEAP_DIAGNOSTICS: 1
+ MIMALLOC_VERBOSE: 1 #incase mimalloc is used we can force debugging
+
+ vars:
+ ARGS: "--config ../config/config.json --debug"
+
+ cmds:
+ - task: run
+ vars: { ARGS: '{{.ARGS}}' }
+
+ run-paranoid:
+ desc: "Runs the server with paranoid security settings"
+ env:
+ VNLIB_SHARED_HEAP_GLOBAL_ZERO: 1 #force global heap zeroing
+ VNLIB_SHARED_HEAP_DIAGNOSTICS: 0 #disable heap diagnostics
+
+ vars:
+ #enable zero allocation, even though global heap zero is set
+ # silent mode to reduce logging to the console
+ # force OS ciphers for TLS encryption
+ ARGS: "--config ../config/config.json
+ --zero-alloc
+ --silent
+ --use-os-ciphers
+ --input-off"
+
+ cmds:
+ task: run
+ vars: { ARGS: '{{.ARGS}}' }
+
+ run:
+ des: "Run the webserver with your specified command line arguments"
+ interactive: true
+ cmds:
+ #run the webserver as a cross-platform application
+ - dotnet VNLib.WebServer.dll {{.ARGS}} {{.CLI_ARGS}} \ No newline at end of file