()
| 339 | } |
| 340 | |
| 341 | func (s *Server) UpdateRootLocation() { |
| 342 | newDir := Directive{ |
| 343 | Name: "location", |
| 344 | Parameters: []string{"/"}, |
| 345 | Block: &Block{}, |
| 346 | } |
| 347 | block := &Block{} |
| 348 | block.AppendDirectives(&Directive{ |
| 349 | Name: "root", |
| 350 | Parameters: []string{"index.html"}, |
| 351 | }) |
| 352 | newDir.Block = block |
| 353 | } |
| 354 | |
| 355 | func (s *Server) UpdateRootProxy(proxy []string) { |
| 356 | httpsProxy := len(proxy) > 0 && strings.HasPrefix(strings.ToLower(strings.TrimSpace(proxy[0])), "https://") |
no test coverage detected