Sha256: 5ca40ff47cd37b06af4122f82c5b224cc769253ef304f46989143a884cc6d48b
Contents?: true
Size: 1.95 KB
Versions: 4
Compression:
Stored size: 1.95 KB
Contents
## # You should look at the following URL's in order to grasp a solid understanding # of Nginx configuration files in order to fully unleash the power of Nginx. # http://wiki.nginx.org/Pitfalls # http://wiki.nginx.org/QuickStart # http://wiki.nginx.org/Configuration # # Generally, you will want to move this file somewhere, and start with a clean # file but keep this around for reference. Or just disable in sites-enabled. # # Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples. ## # Default server configuration # server { listen 80 default_server; listen [::]:80 default_server ipv6only=on; # SSL configuration # # listen 443 ssl default_server; # listen [::]:443 ssl default_server; # # Self signed certs generated by the ssl-cert package # Don't use them in a production server! # # include snippets/snakeoil.conf; server_name <%= fetch(:server) %>; passenger_enabled on; rails_env <%= fetch(:stage) %>; root <%= fetch(:deploy_to) %>/current/public; <% if fetch(:stage) == :production -%> # listen 443 ssl; # ssl_certificate /etc/ssl/certs/<%= fetch(:server) %>.chained.crt; # ssl_certificate_key /etc/ssl/private/<%= fetch(:server) %>.key; <% end -%> client_max_body_size <%= fetch(:nginx_max_body_size) %>; error_page 500 502 503 504 /50x.html; location = /50x.html { root html; } location ~ ^/(<%= fetch(:nginx_assets_dirs).join('|') %>)/ { gzip_static on; expires max; add_header Cache-Control public; break; } } server { listen 80; server_name www.<%= fetch(:server) %>; return 301 $scheme://<%= fetch(:server) %>$request_uri; } # Virtual Host configuration for example.com # # You can move that to a different file under sites-available/ and symlink that # to sites-enabled/ to enable it. # #server { # listen 80; # listen [::]:80; # # server_name example.com; # # root /var/www/example.com; # index index.html; # # location / { # try_files $uri $uri/ =404; # } #}
Version data entries
4 entries across 4 versions & 1 rubygems