Skip to content

Commit 113042c

Browse files
committed
layout cleaning
1 parent 537f98c commit 113042c

File tree

1 file changed

+32
-32
lines changed

1 file changed

+32
-32
lines changed

defaults/main.yml

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
11
---
2-
nginx_etc : "/etc/nginx/"
3-
nginx_default_root : "/usr/share/nginx/html" # Will only work for ubuntu
4-
nginx_max_clients : 512
5-
nginx_install_repo : "ubuntu" # Options: ["nginx", "ubuntu"]
6-
nginx_apt_state : "present" # Options: ["latest", "present"]
2+
nginx_etc : "/etc/nginx/"
3+
nginx_default_root : "/usr/share/nginx/html" # Will only work for ubuntu
4+
nginx_max_clients : 512
5+
nginx_install_repo : "ubuntu" # Options: ["nginx", "ubuntu"]
6+
nginx_apt_state : "present" # Options: ["latest", "present"]
77

8-
nginx_http_params:
9-
sendfile: "on"
10-
tcp_nopush: "on"
11-
tcp_nodelay: "on"
12-
keepalive_timeout: "65"
13-
access_log: "/var/log/nginx/access.log"
14-
error_log: "/var/log/nginx/error.log"
8+
nginx_http_params :
9+
sendfile : "on"
10+
tcp_nopush : "on"
11+
tcp_nodelay : "on"
12+
keepalive_timeout : "65"
13+
access_log : "/var/log/nginx/access.log"
14+
error_log : "/var/log/nginx/error.log"
1515

16-
nginx_site :
17-
- file_name : "test"
18-
blocks :
19-
- type : "server"
20-
index : "index.html index.htm"
21-
server_name : localhost
22-
listen : 80
16+
nginx_site :
17+
- file_name : "test"
18+
blocks :
19+
- type : "server"
20+
index : "index.html index.htm"
21+
server_name : localhost
22+
listen : 80
2323
## Use josn
24-
location1 : {
25-
name: /,
26-
type: location,
27-
try_files: "$uri $uri/ /index.html",
28-
root: "{{ nginx_default_root }}"
29-
}
24+
location1 : {
25+
name: /,
26+
type: location,
27+
try_files: "$uri $uri/ /index.html",
28+
root: "{{ nginx_default_root }}"
29+
}
3030
## Use yaml
31-
location2 :
32-
name : /doc/,
33-
type : location
34-
alias : "/usr/share/doc/"
35-
autoindex : "on"
36-
allow : "127.0.0.1"
37-
deny : "all"
31+
location2 :
32+
name : /doc/
33+
type : location
34+
alias : "/usr/share/doc/"
35+
autoindex : "on"
36+
allow : "127.0.0.1"
37+
deny : "all"
3838

0 commit comments

Comments
 (0)