fork 0k-charms
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
1.6 KiB

  1. docker-image: docker.0k.io/ntfy:2.8.0 ## from: binwiederhier/ntfy:v2.8.0
  2. data-resources:
  3. - /var/cache/ntfy
  4. - /var/lib/ntfy
  5. docker-compose:
  6. command:
  7. - serve
  8. default-options:
  9. auth-default-access: deny-all
  10. enable-signup: false
  11. enable-login: true
  12. enable-reservations: true
  13. uses:
  14. web-proxy:
  15. #constraint: required | recommended | optional
  16. #auto: pair | summon | none ## default: pair
  17. constraint: recommended
  18. auto: pair
  19. solves:
  20. proxy: "Public access"
  21. default-options:
  22. target: !var-expand ${MASTER_BASE_SERVICE_NAME}:80
  23. apache-custom-rules:
  24. - !var-expand |
  25. RewriteEngine On
  26. RewriteCond %{HTTP:Upgrade} ^websocket$ [NC]
  27. RewriteCond %{HTTP:Connection} Upgrade [NC]
  28. RewriteRule /(.*)$ ws://${MASTER_BASE_SERVICE_NAME}:80/\$1 [P,L]
  29. <If "%{REQUEST_METHOD} == 'GET' && %{HTTPS} == 'off'">
  30. RedirectMatch permanent "^/([-_A-Za-z0-9]{0,64})$" "https://%{SERVER_NAME}/$1"
  31. </If>
  32. SetEnv proxy-nokeepalive 1
  33. SetEnv proxy-sendchunked 1
  34. # Higher than the max message size of 4096 bytes
  35. LimitRequestBody 102400
  36. backup:
  37. constraint: recommended
  38. auto: pair
  39. solves:
  40. backup: "Automatic regular backup"
  41. default-options:
  42. ## First pattern matching wins, no pattern matching includes.
  43. ## include-patterns are checked first, then exclude-patterns
  44. ## Patterns rules:
  45. ## - ending / for directory
  46. ## - '*' authorized
  47. ## - must start with a '/', will start from $SERVICE_DATASTORE
  48. exclude-patterns:
  49. - "/var/cache/ntfy/"