mc_nginx / nginx registry¶
If you alter this module and want to test it, do not forget to deploy it on minion using:
salt '*' saltutil.sync_modules
Documentation of this module is available with:
salt '*' sys.doc mc_nginx
-
mc_states.modules.mc_nginx.
settings
()¶ nginx registry
- is_reverse_proxied
- is nginx itself is reverse proxified (true in cloudcontroller mode)
- reverse_proxy_addresses
- authorized reverse proxied addresses
- use_real_ip
- do we use real ip module
- real_ip_header
- which http header to search for real ip
- reverse_proxy_addresses
- control real ip addresses (list of values). Default to network gateway (in cloud controllermode, haproxy is there)
- logformat
- default log format
- logformats
- custom log formats mapping
- allowed_hosts
- default allowed hosts
- ulimit
- default ulimit for the workers
- open_file_cache
- raw setting for nginx (see nginx documentation)
- open_file_cache_valid
- raw setting for nginx (see nginx documentation)
- open_file_cache_min_uses
- raw setting for nginx (see nginx documentation)
- open_file_cache_errors
- raw setting for nginx (see nginx documentation)
- epoll
- do we use epoll (true on linux)
- default_type
- raw setting for nginx (see nginx documentation)
- worker_processes
- nb workers, default to nb of cpus
- worker_connections
- raw setting for nginx (see nginx documentation)
- multi_accept
- raw setting for nginx (see nginx documentation)
- ssl_cacert
- ssl_cacert content if any
- ssl_redirect
- unconditionnal www -> ssl redirect
- ssl_protocols
- SSLv3 TLSv1 TLSv1.1 TLSv1.2
- ssl_cacert_first
- False
- ssl_session_cache
- shared:SSL:10m
- ssl_session_timeout
- 10m
- ssl_cipher
- IGH:!aNULL:!MD5
- user
- nginx user
- group
- nginx group
- server_names_hash_bucket_size
- raw setting for nginx (see nginx documentation)
- loglevel
- nginx error loglevel (crit)
- logdir
- nginx logdir (/var/log/nginx)
- access_log
- ‘{logdir}/access.log
- ldap_cache:
- use ldap auth plugin cache (True)
- sendfile
- raw setting for nginx (see nginx documentation)
- tcp_nodelay
- raw setting for nginx (see nginx documentation)
- tcp_nopush
- raw setting for nginx (see nginx documentation)
- reset_timedout_connection
- raw setting for nginx (see nginx documentation)
- client_body_timeout
- raw setting for nginx (see nginx documentation)
- send_timeout
- raw setting for nginx (see nginx documentation)
- keepalive_requests
- raw setting for nginx (see nginx documentation)
- keepalive_timeout
- raw setting for nginx (see nginx documentation)
- types_hash_max_size
- raw setting for nginx (see nginx documentation)
- server_tokens
- raw setting for nginx (see nginx documentation)
- server_name_in_redirect
- raw setting for nginx (see nginx documentation)
- error_log
- ‘{logdir}/error.log’
- gzip
- enabling gzip
- redirect_aliases
- do we redirect server aliases to main domain
- port
- http port (80)
- ssh_port
- https port (443)
- default_domains
- default domains to server [‘localhost’]
- docdir
- /usr/share/doc/nginx
- doc_root
- /usr/share/nginx/www
- vhost_default_template
- salt://makina-states/files/etc/nginx/sites-available/vhost.conf
- vhost_wrapper_template
- Default template for vhosts salt://makina-states/files/etc/nginx/sites-available/vhost.conf
- vhost_default_content
- Default content template for the DEFAULT DOMAIN vhost salt://makina-states/files/etc/nginx/sites-available/default.conf’
- vhost_top_template
- default template to include in vhost top salt://makina-states/files/etc/nginx/includes/vhost.top.conf,
- vhost_content_template
- default template for vhost content salt://makina-states/files/etc/nginx/includes/vhost.content.conf
- virtualhosts
- Mapping containing all defined virtualhosts
- rotate
- days to rotate log
- default_vhost
- set to false to disable default vhost
-
mc_states.modules.mc_nginx.
vhost_settings
(domain, doc_root, **kwargs)¶ Settings for the nginx macro
- ssl_cert
- ssl_cert content if any
- ssl_key
- ssl_key content if any