mrdrew

bitwarden letsencrypt conf

Apr 20th, 2020
34
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #BITWARDEN
  2. # make sure that your domain has dns has a cname or a record set for the subdomain bitwarden
  3. # This config file will work as is when using a custom docker network the same as letesencrypt (proxynet).
  4. # However the container name is expected to be "bitwardenrs" as it is by default the template as this name is used to resolve.
  5. # If you are not using the custom docker network for this container then change the line "server bitwardenrs:80;" to "server [YOUR_SERVER_IP]:8086;" Also remove line 7
  6.  
  7. resolver 127.0.0.11 valid=30s;
  8. upstream bitwarden {
  9. server bitwardenrs:80;
  10. }
  11.  
  12. server {
  13. listen 443 ssl;
  14. server_name bitwarden.*;
  15. include /config/nginx/ssl.conf;
  16. client_max_body_size 128M;
  17.  
  18. location / {
  19. proxy_pass http://bitwarden;
  20. proxy_set_header Host $host;
  21. proxy_set_header X-Real-IP $remote_addr;
  22. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  23. proxy_set_header X-Forwarded-Proto $scheme;
  24. }
  25.  
  26. location /notifications/hub {
  27. proxy_pass http://bitwarden;
  28. proxy_set_header Upgrade $http_upgrade;
  29. proxy_set_header Connection "upgrade";
  30. }
  31.  
  32. location /notifications/hub/negotiate {
  33. proxy_pass http://bitwarden;
  34. }
  35.  
  36. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×