Skip to content

Commit

Permalink
Merge pull request #79 from juliushaertl/enh/notify_push_max_connecti…
Browse files Browse the repository at this point in the history
…on_time

feat: Allow configuring max_connection_time for notify_push
  • Loading branch information
doobry-systemli authored Feb 13, 2024
2 parents ecdf5b7 + 3acf117 commit 3fdfe9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ nextcloud_notify_push: False
nextcloud_notify_push_version: "latest"
nextcloud_notify_push_url: "https://github.com/nextcloud/notify_push/releases/download/v{{ nextcloud_notify_push_version }}/notify_push-x86_64-unknown-linux-musl"
nextcloud_notify_push_allow_self_signed: False
nextcloud_notify_push_max_connection_time: False

# Uncomment to bind Nextcloud notify_push daemon to localhost
# nextcloud_notify_push_bind: 127.0.0.1
Expand Down
2 changes: 1 addition & 1 deletion templates/systemd/nextcloud-notify-push.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Description=Push daemon for Nextcloud clients
After=network-online.target

[Service]
Environment={%if nextcloud_notify_push_bind|default(False) %}BIND={{ nextcloud_notify_push_bind }}{% endif %} PORT={{ nextcloud_notify_push_port }} {% if nextcloud_notify_push_metrics_port|default(False) %}METRICS_PORT={{ nextcloud_notify_push_metrics_port }}{% endif %} {%if nextcloud_notify_push_allow_self_signed|default(False) %}ALLOW_SELF_SIGNED=true{% endif %}
Environment={%if nextcloud_notify_push_bind|default(False) %}BIND={{ nextcloud_notify_push_bind }}{% endif %} PORT={{ nextcloud_notify_push_port }} {% if nextcloud_notify_push_metrics_port|default(False) %}METRICS_PORT={{ nextcloud_notify_push_metrics_port }}{% endif %} {%if nextcloud_notify_push_allow_self_signed|default(False) %}ALLOW_SELF_SIGNED=true{% endif %} {%if nextcloud_notify_push_max_connection_time|default(False) %}MAX_CONNECTION_TIME={{ nextcloud_notify_push_max_connection_time }}{% endif %}

ExecStart=/usr/local/bin/notify_push {{ nextcloud_instance }}/config/config.php
User={{ nextcloud_http_user }}
Expand Down

0 comments on commit 3fdfe9b

Please sign in to comment.