SHARE
TWEET

Discouse server block

Grex Jun 3rd, 2016 (edited) 88 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. # This server block is what is live today and working
  3.  
  4. #server {
  5. #   listen 80;
  6. #   server_name forums.grimreapergamers.com;
  7.  
  8. #   location / {
  9. #       proxy_pass http://unix:/var/discourse/shared/standalone/nginx.http.sock:;
  10. #       proxy_set_header Host $http_host;
  11. #       proxy_http_version 1.1;
  12. #       proxy_set_header X-Real-IP $remote_addr;
  13. #       proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  14. #   }
  15.    
  16. #}
  17.  
  18. # This is what i am trying to go to and its giving me a bad gateway error
  19.  
  20. server {
  21.         listen 80;
  22.         server_name forums.grimreapergamers.com;
  23.         return 301 https://forums.grimreapergamers.com$request_uri;
  24. }
  25. server {
  26.         listen 443 ssl http2;
  27.         server_name forums.grimreapergamers.com;
  28.         ssl_certificate /etc/letsencrypt/live/forums.grimreapergamers.com/fullchain.pem;
  29.         ssl_certificate_key /etc/letsencrypt/live/forums.grimreapergamers.com/privkey.pem;
  30.         ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  31.         ssl_ciphers 'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:ECDHE-RSA-DES-CBC3-SHA:ECDHE-ECDSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA';
  32.         ssl_prefer_server_ciphers on;
  33.         location / {
  34.             proxy_pass http://unix:/var/discourse/shared/standalone/nginx.http.sock:;
  35.             proxy_set_header Host $http_host;
  36.             proxy_http_version 1.1;
  37.             proxy_set_header X-Real-IP $remote_addr;
  38.             proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  39.         }
  40. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top