Created
September 21, 2016 05:17
-
-
Save AntonioIrizarry/7f4d0eb24d234d03ce21932a3b9efc42 to your computer and use it in GitHub Desktop.
This file contains 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 characters
/* | |
* This is a manifest file that'll be compiled into application.css, which will include all the files | |
* listed below. | |
* | |
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets, | |
* or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path. | |
* | |
* You're free to add application-wide styles to this file and they'll appear at the bottom of the | |
* compiled file so the styles you add here take precedence over styles defined in any styles | |
* defined in the other CSS/SCSS files in this directory. It is generally better to create a new | |
* file per style scope. | |
* | |
*= require_tree . | |
*= require_self | |
*= require foundation_and_overrides | |
*/ | |
@import 'https://fonts.googleapis.com/css?family=Pacifico'; | |
@import 'https://fonts.googleapis.com/css?family=Montserrat'; | |
@import 'https://fonts.googleapis.com/css?family=Cardo'; | |
@import 'https://fonts.googleapis.com/css?family=Muli'; | |
@import 'https://fonts.googleapis.com/css?family=Roboto+Condensed'; | |
@import 'https://fonts.googleapis.com/css?family=Arvo'; | |
@import 'https://fonts.googleapis.com/css?family=Raleway'; | |
@import 'https://fonts.googleapis.com/css?family=Space+Mono'; | |
@import 'https://fonts.googleapis.com/css?family=Rubik'; | |
@import 'https://fonts.googleapis.com/css?family=Roboto'; | |
/*@import 'https://fonts.googleapis.com/css?family=Sacramento';*/ | |
@import 'https://fonts.googleapis.com/css?family=Great+Vibes'; | |
/*@import 'https://fonts.googleapis.com/css?family=Signika';*/ | |
@import 'https://fonts.googleapis.com/css?family=Abel'; | |
@import 'https://fonts.googleapis.com/css?family=Open+Sans'; |
This file contains 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 characters
upstream myapp_puma { | |
server unix:/home/tonytau/projects/recognizetalent/shared/sockets/puma.sock fail_timeout=0; | |
} | |
# for redirecting to https version of the site | |
server { | |
listen 80; | |
rewrite ^(.*) https://$host$1 permanent; | |
} | |
# for redirecting to non-www version of the site | |
server { | |
listen 80; | |
server_name www.tonytaudesign.com; | |
rewrite ^(.*) http://tonytaudesign.com$1 permanent; | |
} | |
server { | |
listen 443 default ssl; | |
server_name tonytaudesign.com; | |
root /home/tonytau/projects/recognizetalent/public; | |
ssl_certificate /etc/letsencrypt/live/tonytaudesign.com/fullchain.pem; | |
ssl_certificate_key /etc/letsencrypt/live/tonytaudesign.com/privkey.pem; | |
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; | |
ssl_prefer_server_ciphers on; | |
ssl_dhparam /etc/ssl/certs/dhparam.pem; | |
ssl_ciphers 'xxx'; | |
ssl_session_timeout 1d; | |
ssl_session_cache shared:SSL:50m; | |
ssl_stapling on; | |
ssl_stapling_verify on; | |
add_header Strict-Transport-Security max-age=15768000; | |
location ^~ /assets/ { | |
include /etc/nginx/mime.types; | |
gzip_static on; | |
expires max; | |
add_header Cache-Control public; | |
add_header ETag ""; | |
break; | |
} | |
try_files $uri/index.html $uri @myapp_puma; | |
location @myapp_puma { | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header Host $host; | |
proxy_set_header X-Forwarded-Proto https; | |
proxy_redirect off; | |
proxy_pass http://myapp_puma; | |
} | |
error_page 500 502 503 504 /500.html; | |
client_max_body_size 4G; | |
keepalive_timeout 10; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment