Advertisement
Guest User

nginx.conf

a guest
Mar 18th, 2019
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. server {
  2. listen 80;
  3. server_name [example.com];
  4. return 301 https://$server_name$request_uri;
  5. }
  6.  
  7. server {
  8. listen 443 ssl;
  9. listen [::]:443 ssl;
  10. server_name [example.com];
  11.  
  12. ssl on;
  13. ssl_certificate /home/pi/.synapse/certs/[example.com].cert.pem;
  14. ssl_certificate_key /home/pi/.synapse/certs/[example.com].privkey.pem;
  15.  
  16. location / {
  17. proxy_pass http://localhost:8008;
  18. proxy_set_header X-Forwarded-For $remote_addr;
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement