From 9f32b08beb3c144810d5ec8efc27aa69029b0957 Mon Sep 17 00:00:00 2001 From: Josh Mudge Date: Thu, 14 Nov 2019 23:20:19 -0700 Subject: [PATCH] Updated port number, no need for admin privs. --- All/Sign Using OV Cert.md | 5 +++++ All/server.go | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/All/Sign Using OV Cert.md b/All/Sign Using OV Cert.md index cadf368..39e18f1 100644 --- a/All/Sign Using OV Cert.md +++ b/All/Sign Using OV Cert.md @@ -149,5 +149,10 @@ You can find more information about how this works at the source: https://stacko ## WIP: Service +``` +SCHTASKS /Create /RU SYSTEM /SC ONSTART /TN "A Go Web Server" /TR "C:\Users\Josh\.local\opt\serviceman\bin\serviceman.A Go Web Server.exe" +``` + + Service: https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/new-service?view=powershell-6 Credential seems to be what makes it admin or not: https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/set-service?view=powershell-6 diff --git a/All/server.go b/All/server.go index 6ea16e9..fe81c5e 100644 --- a/All/server.go +++ b/All/server.go @@ -18,7 +18,7 @@ import ( func main() { - port := flag.String("p", "8100", "port to serve on") + port := flag.String("p", "80", "port to serve on") directory := flag.String("d", ".", "the directory of static file to host") flag.Parse()