You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. # Upstream sites for proxy-ing
  2. upstream craft {
  3. server 138.68.233.29:8080;
  4. }
  5. upstream freehand {
  6. server 138.68.233.29:8082;
  7. }
  8. ### FREEHAND ###
  9. server {
  10. listen 80;
  11. listen [::]:80;
  12. server_name freehand.com www.freehand.com;
  13. index index.html index.html index.php;
  14. location / {
  15. proxy_set_header Host $host;
  16. proxy_set_header X-Real-IP $remote_addr;
  17. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  18. proxy_set_header X-Forwarded-Proto $scheme;
  19. proxy_pass http://freehand;
  20. proxy_redirect off;
  21. }
  22. }
  23. ### SSL Stuff
  24. server {
  25. listen 443 ssl http2;
  26. listen [::]:443 ssl http2;
  27. server_name freehand.com www.freehand.com;
  28. include snippets/letsencrypt-freehand.conf;
  29. include snippets/ssl-params-freehand.conf;
  30. root /var/www/html;
  31. index index.html index.htm index.php index.nginx-debian.html;
  32. location / {
  33. proxy_set_header Host $host;
  34. proxy_set_header X-Real-IP $remote_addr;
  35. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  36. proxy_set_header X-Forwarded-Proto $scheme;
  37. proxy_set_header Accept-Encoding "";
  38. proxy_set_header Proxy "";
  39. proxy_pass http://freehand;
  40. proxy_redirect off;
  41. }
  42. location ~/\.ht {
  43. deny all;
  44. }
  45. }
  46. ### CRAFT IN AMERICA ###
  47. ### Redirect regular traffic to SSL
  48. server {
  49. listen 80;
  50. listen [::]:80;
  51. server_name craftinamerica.org www.craftinamerica.org;
  52. # return 302 https://$host$request_uri;
  53. # WP
  54. index index.html index.htm index.php index.nginx-debian.html;
  55. location / {
  56. proxy_set_header Host $host;
  57. proxy_set_header X-Real-IP $remote_addr;
  58. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  59. proxy_set_header X-Forwarded-Proto $scheme;
  60. proxy_pass http://craft;
  61. proxy_redirect off;
  62. }
  63. }
  64. ### SSL Stuff
  65. server {
  66. listen 443 ssl http2;
  67. listen [::]:443 ssl http2;
  68. server_name craftinamerica.org www.craftinamerica.org;
  69. include snippets/letsencrypt.conf;
  70. include snippets/ssl-params.conf;
  71. root /var/www/html;
  72. index index.html index.htm index.php index.nginx-debian.html;
  73. location / {
  74. proxy_set_header Host $host;
  75. proxy_set_header X-Real-IP $remote_addr;
  76. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  77. proxy_set_header X-Forwarded-Proto $scheme;
  78. proxy_set_header Accept-Encoding "";
  79. proxy_set_header Proxy "";
  80. proxy_pass http://craft;
  81. proxy_redirect off;
  82. }
  83. location ~/\.ht {
  84. deny all;
  85. }
  86. }