Merge branch 'main' of https://gitea.tecamino.com/paadi/memberApp
This commit is contained in:
@@ -33,8 +33,8 @@ func main() {
|
|||||||
organization := flag.String("organization", "", "self signed ciertificate organization")
|
organization := flag.String("organization", "", "self signed ciertificate organization")
|
||||||
port := flag.Uint("port", 9500, "server listening port")
|
port := flag.Uint("port", 9500, "server listening port")
|
||||||
https := flag.Bool("https", false, "serves as https needs flag -cert and -chain")
|
https := flag.Bool("https", false, "serves as https needs flag -cert and -chain")
|
||||||
sslCert := flag.String("cert", "", "ssl certificate path")
|
sslKey := flag.String("privkey", "", "ssl private key path")
|
||||||
sslChain := flag.String("chain", "", "ssl chain path")
|
sslFullchain := flag.String("fullchain", "", "ssl fullchain path")
|
||||||
debug := flag.Bool("debug", false, "log debug")
|
debug := flag.Bool("debug", false, "log debug")
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
|
|
||||||
@@ -179,7 +179,7 @@ func main() {
|
|||||||
|
|
||||||
// start https server
|
// start https server
|
||||||
logger.Info("main", fmt.Sprintf("https listen on ip: %s port: %d", *ip, *port))
|
logger.Info("main", fmt.Sprintf("https listen on ip: %s port: %d", *ip, *port))
|
||||||
if err := s.ServeHttps(*ip, *port, cert.Cert{Organization: *organization, CertFile: *sslCert, KeyFile: *sslChain}); err != nil {
|
if err := s.ServeHttps(*ip, *port, cert.Cert{Organization: *organization, CertFile: *sslFullchain, KeyFile: *sslKey}); err != nil {
|
||||||
logger.Error("main", "error https server "+err.Error())
|
logger.Error("main", "error https server "+err.Error())
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<q-uploader
|
<q-uploader
|
||||||
style="max-width: 300px"
|
style="max-width: 300px"
|
||||||
:url="`https://0.0.0.0:` + portApp + `/api/members/import/csv`"
|
:url="/api/members/import/csv"
|
||||||
label="Import CSV"
|
label="Import CSV"
|
||||||
multiple
|
multiple
|
||||||
:with-credentials="true"
|
:with-credentials="true"
|
||||||
|
|||||||
Reference in New Issue
Block a user