Advertisement
Guest User

discourse-http.conf

a guest
Jun 1st, 2019
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. server {
  2. # The IP that you forwarded in your router (nginx proxy)
  3. listen 192.168.0.101:80; listen [::]:80;
  4.  
  5. # Make site accessible from http://localhost/
  6. server_name 192.168.0.104 discourse;
  7.  
  8. # The internal IP of the VM that hosts your Apache config
  9. set $upstream 192.168.0.104;
  10.  
  11. location / {
  12.  
  13. proxy_pass http://discourse.myreserveddns.com:8080/;
  14. # proxy_pass http://unix:/var/discourse/shared/standalone/nginx.http.sock:;
  15. proxy_read_timeout 90;
  16. proxy_set_header Host $http_host;
  17. proxy_http_version 1.1;
  18. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  19. proxy_set_header X-Forwarded-Proto $scheme;
  20. proxy_set_header X-Real-IP $remote_addr;
  21. # proxy_redirect http://discourse.myreserveddns.com:8080/ http://discourse.myreserveddns.com;
  22.  
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement