Advertisement
Guest User

Untitled

a guest
May 9th, 2017
263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. server {
  2. listen *:80;
  3. listen *:443;
  4. server_name openfire.example.com;
  5.  
  6. ssl on;
  7. ssl_protocols SSLv3 TLSv1;
  8. ssl_certificate /etc/letsencrypt/live/openfire.example.com/fullchain.pem;
  9. ssl_certificate_key /etc/letsencrypt/live/openfire.example.com/privkey.pem;
  10.  
  11. location / {
  12. rewrite ^(.*)$ https://openfire.example.com$1 permanent;
  13. proxy_pass http://192.168.2.33:9090;
  14. proxy_redirect http://192.168.2.33:9090/ $scheme://$host/;
  15. proxy_http_version 1.1;
  16. proxy_set_header Upgrade $http_upgrade;
  17. proxy_set_header Connection $connection_upgrade;
  18. proxy_read_timeout 20d;
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement