Revisions
-
marcodejongh revised this gist
Aug 21, 2014 . 2 changed files with 76 additions and 53 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,53 +0,0 @@ This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,76 @@ http { proxy_cache_path /tmp/nginx/cache levels=1:2 keys_zone=main:10m max_size=1g inactive=1d; proxy_temp_path /tmp/nginx/tmp; server { listen 80; server_name app.example.com; rewrite ^ https://$server_name$request_uri? permanent; } server { set $cache_key $scheme$host$uri$is_args$args; listen 443; server_name app.example.com; ssl on; ssl_certificate /etc/nginx/ssl/ssl.crt; ssl_certificate_key /etc/nginx/ssl/ssl.key; location = /favicon.ico { root /home/ubuntu/app/bundle/programs/client/app; access_log off; expires 1w; } location ~* "^/[a-z0-9]{40}\.(css|js)$" { root /home/ubuntu/app/bundle/programs/client; access_log off; expires max; } location ~ "^/packages" { root /home/ubuntu/app/bundle/programs/client; access_log off; } location / { proxy_pass http://localhost:3000; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_set_header Host $host; } location /static { proxy_pass http://localhost:3000/static; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_set_header Host $host; proxy_cache main; proxy_cache_key $cache_key; proxy_cache_valid 1d; #time till cache goes stale proxy_cache_use_stale error timeout invalid_header http_500 http_502 http_504 http_404; expires 365d; gzip on; gzip_min_length 1100; gzip_buffers 4 32k; gzip_types text/plain application/x-javascript text/xml text/css; gzip_vary on; } } } -
marcodejongh revised this gist
Aug 21, 2014 . 1 changed file with 14 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -36,4 +36,18 @@ server { proxy_set_header Connection "upgrade"; proxy_set_header Host $host; } location /static { proxy_pass http://localhost:3000/static; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_set_header Host $host; expires 365d; gzip on; gzip_min_length 1100; gzip_buffers 4 32k; gzip_types text/plain application/x-javascript text/xml text/css; gzip_vary on; } } -
dweldon revised this gist
Sep 20, 2013 . 1 changed file with 4 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,21 +3,21 @@ server { server_name app.example.com; rewrite ^ https://$server_name$request_uri? permanent; } server { listen 443; server_name app.example.com; ssl on; ssl_certificate /etc/nginx/ssl/ssl.crt; ssl_certificate_key /etc/nginx/ssl/ssl.key; location = /favicon.ico { root /home/ubuntu/app/bundle/programs/client/app; access_log off; expires 1w; } location ~* "^/[a-z0-9]{40}\.(css|js)$" { root /home/ubuntu/app/bundle/programs/client; access_log off; -
dweldon revised this gist
Sep 20, 2013 . 1 changed file with 8 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -13,17 +13,22 @@ server { ssl_certificate_key /etc/nginx/ssl/ssl.key; location = /favicon.ico { root /home/ubuntu/app/bundle/programs/client/app; access_log off; expires 1w; } location ~* "^/[a-z0-9]{40}\.(css|js)$" { root /home/ubuntu/app/bundle/programs/client; access_log off; expires max; } location ~ "^/packages" { root /home/ubuntu/app/bundle/programs/client; access_log off; } location / { proxy_pass http://localhost:3000; proxy_http_version 1.1; -
dweldon created this gist
Aug 4, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,34 @@ server { listen 80; server_name app.example.com; rewrite ^ https://$server_name$request_uri? permanent; } server { listen 443; server_name app.example.com; ssl on; ssl_certificate /etc/nginx/ssl/ssl.crt; ssl_certificate_key /etc/nginx/ssl/ssl.key; location = /favicon.ico { root /home/ubuntu/app/bundle/static; access_log off; expires 1w; } location ~* "^/[a-z0-9]{40}\.(css|js)$" { root /home/ubuntu/app/bundle/static_cacheable; access_log off; expires max; } location / { proxy_pass http://localhost:3000; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_set_header Host $host; } }