Browse Source

Start setting up default configuration options

DarkMorford 6 years ago
parent
commit
9672b1fb15
3 changed files with 47 additions and 0 deletions
  1. 20 0
      data/common.yaml
  2. 26 0
      data/os/Debian.yaml
  3. 1 0
      types/nginxbool.pp

+ 20 - 0
data/common.yaml

@@ -1 +1,21 @@
 ---
 ---
+nginx::user: 'nobody nobody'
+nginx::worker_processes: 1
+nginx::pid: 'logs/nginx.pid'
+
+nginx::worker_connections: 512
+
+nginx::sendfile: 'off'
+nginx::tcp_nopush: 'off'
+nginx::tcp_nodelay: 'on'
+nginx::keepalive_timeout: '75s'
+nginx::types_hash_max_size: 1024
+nginx::default_type: 'text/plain'
+
+nginx::ssl_protocols: ['TLSv1', 'TLSv1.1', 'TLSv1.2']
+nginx::ssl_prefer_server_ciphers: 'off'
+
+nginx::access_log: 'logs/access.log combined'
+nginx::error_log: 'logs/error.log error'
+
+nginx::gzip: 'off'

+ 26 - 0
data/os/Debian.yaml

@@ -1,3 +1,29 @@
 ---
 ---
 nginx::server_package: 'nginx'
 nginx::server_package: 'nginx'
 nginx::server_service: 'nginx'
 nginx::server_service: 'nginx'
+
+# Global section
+nginx::user: 'www-data'
+nginx::worker_processes: 'auto'
+nginx::pid: '/run/nginx.pid'
+
+# Events section
+nginx::worker_connections: 768
+
+# HTTP Basic section
+nginx::sendfile: 'on'
+nginx::tcp_nopush: 'on'
+nginx::keepalive_timeout: 65
+nginx::types_hash_max_size: 2048
+nginx::default_type: 'application/octet-stream'
+
+# HTTP SSL section
+nginx::ssl_prefer_server_ciphers: 'on'
+
+# HTTP Logging section
+nginx::access_log: '/var/log/nginx/access.log'
+nginx::error_log:  '/var/log/nginx/error.log'
+
+# HTTP Gzip section
+nginx::gzip: 'on'
+nginx::gzip_disable: 'msie6'

+ 1 - 0
types/nginxbool.pp

@@ -0,0 +1 @@
+type Nginx::NginxBool = Enum['on', 'off']