Sha256: 93879144b06d9d3c4d36388381da06567174ec9050f2d404259a9863db4445f7

Contents?: true

Size: 1.23 KB

Versions: 1

Compression:

Stored size: 1.23 KB

Contents

server {
	listen *:880;

{%- if pillar['admin_password'] %}
        ssl on;
        ssl_certificate /etc/pki/self_signed/certs/localhost.crt;
        ssl_certificate_key /etc/pki/self_signed/certs/localhost.key;

        auth_basic           "Restricted site";
        auth_basic_user_file /etc/nginx/admin.d/htpasswd;
{%- endif %}

        satisfy all;

        # Allow private IP range.
        allow   10.0.0.0/8;
        allow   172.16.0.0/12;
        allow   192.168.0.0/16;

        # todo: add list of dynamic ips - of admins

        deny    all;

        #listen   [::1]:880 default ipv6only=on; ## listen for ipv6
        index index.php index.html index.htm;

        server_name localhost;
	client_max_body_size 20M;

	root {{ pillar['www_dir'] }}/admin;

        location ~ \.php$ {
              fastcgi_split_path_info ^(.+\.php)(/.+)$;
              #   # NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
              #
              #   # With php5-cgi alone:
              #   fastcgi_pass 127.0.0.1:9000;
              #   # With php5-fpm:
              fastcgi_pass unix:/var/run/php5-fpm.sock;
              fastcgi_index index.php;
              include fastcgi_params;
          }

        include /etc/nginx/admin.d/*.conf;

}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
salted-rails-0.0.7 salt/www/nginx/etc/nginx/sites-available/admin.conf