|
1 | 1 | --- |
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"] |
7 | 7 |
|
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" |
15 | 15 |
|
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 |
23 | 23 | ## 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 | + } |
30 | 30 | ## 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" |
38 | 38 |
|
0 commit comments