Skip to content

Commit

Permalink
配置
Browse files Browse the repository at this point in the history
  • Loading branch information
togettoyou committed Mar 3, 2022
1 parent a18bcd5 commit d6b5e7c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.DS_Store
.idea/
data/
data/
server/data/
1 change: 1 addition & 0 deletions server/internal/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ func Start() {
WriteTimeout: time.Duration(conf.Server.WriteTimeout) * time.Second,
MaxHeaderBytes: 1 << 20,
}
fmt.Println(conf.Server.URL)
if conf.Server.TLS {
if err := server.ListenAndServeTLS(conf.Server.Crt, conf.Server.Key); err != nil {
panic(err)
Expand Down
1 change: 0 additions & 1 deletion web/nginx.template
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@ server {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
large_client_header_buffers 4 32k;
}

0 comments on commit d6b5e7c

Please sign in to comment.