Skip to content

Commit

Permalink
Add testonly on match, increase max upload size
Browse files Browse the repository at this point in the history
  • Loading branch information
glinscott committed Apr 30, 2018
1 parent 39aa349 commit 81b8c66
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions go/src/server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,9 @@ func uploadNetwork(c *gin.Context) {
GameCap: 400,
Parameters: `["--tempdecay=10"]`,
}
if c.DefaultPostForm("testonly", "0") == "1" {
match.TestOnly = true
}
err = db.GetDB().Create(&match).Error
if err != nil {
log.Println(err)
Expand Down
2 changes: 1 addition & 1 deletion go/src/server/nginx/default
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ server {
listen 80 default_server;
listen [::]:80 default_server;

client_max_body_size 64M;
client_max_body_size 100M;

# SSL configuration
#
Expand Down

0 comments on commit 81b8c66

Please sign in to comment.