瀏覽代碼

Fixed ddclient dst path

pull/4230/head
Townsend 11 月之前
committed by Slavi Pantaleev
父節點
當前提交
9ac8f1f531
共有 4 個檔案被更改,包括 8 行新增5 行删除
  1. +5
    -2
      docs/configuring-playbook-dynamic-dns.md
  2. +1
    -1
      roles/custom/matrix-dynamic-dns/defaults/main.yml
  3. +1
    -1
      roles/custom/matrix-dynamic-dns/templates/ddclient.conf.j2
  4. +1
    -1
      roles/custom/matrix-dynamic-dns/templates/systemd/matrix-dynamic-dns.service.j2

+ 5
- 2
docs/configuring-playbook-dynamic-dns.md 查看文件

@@ -14,7 +14,7 @@ Most cloud providers / ISPs will charge you extra for a static IP address. If yo

## Prerequisite

You'll need to get a username and password from your DNS provider. Please consult with the provider about how to retrieve them.
You'll need to authenticate with your DNS provider somehow, in most cases this is simply a username and password but can differ from provider to provider. Please consult with your providers documentation and the upstream [ddclient documentation](https://github.com/ddclient/ddclient/blob/main/ddclient.conf.in) to determine what you'll need to provide to authenticate.

## Adjusting the playbook configuration

@@ -31,6 +31,8 @@ matrix_dynamic_dns_domain_configurations:
domain: "{{ matrix_domain }}"
```

Keep in mind that certain providers may require a different configuration of the `matrix_dynamic_dns_domain_configurations` variable, for provider specific examples see the [upstream documentation](https://github.com/ddclient/ddclient/blob/main/ddclient.conf.in).

### Extending the configuration

There are some additional things you may wish to configure about the component.
@@ -57,7 +59,8 @@ The shortcut commands with the [`just` program](just.md) are also available: `ju
Additional resources:

- https://matrix.org/docs/guides/free-small-matrix-server
- https://github.com/linuxserver/docker-ddclient

## Troubleshooting

As with all other services, you can find the logs in [systemd-journald](https://www.freedesktop.org/software/systemd/man/systemd-journald.service.html) by logging in to the server with SSH and running `journalctl -fu matrix-dynamic-dns`.
As with all other services, you can find the logs in [systemd-journald](https://www.freedesktop.org/software/systemd/man/systemd-journald.service.html) by logging in to the server with SSH and running `journalctl -fu matrix-dynamic-dns`. However, due to an [upstream issue](https://github.com/linuxserver/docker-ddclient/issues/54#issuecomment-1153143132) the logging output is not always complete. For advanced debugging purposes running the `ddclient` tool outside of the container is useful via the following: `ddclient -file ./ddclient.conf -daemon=0 -debug -verbose -noquiet`.

+ 1
- 1
roles/custom/matrix-dynamic-dns/defaults/main.yml 查看文件

@@ -76,4 +76,4 @@ matrix_dynamic_dns_additional_configuration_blocks: []
# username: XXXXXXXXXXXXXXXX
# password: XXXXXXXXXXXXXXXX
# domain: "{{ matrix_domain }}"
matrix_dynamic_dns_domain_configurations: []
matrix_dynamic_dns_domain_configurations: []

+ 1
- 1
roles/custom/matrix-dynamic-dns/templates/ddclient.conf.j2 查看文件

@@ -63,4 +63,4 @@ script={{ dynamic_dns_domain_configuration.script }}
{% endif %}

{{ dynamic_dns_domain_configuration.domain }}
{% endfor %}
{% endfor %}

+ 1
- 1
roles/custom/matrix-dynamic-dns/templates/systemd/matrix-dynamic-dns.service.j2 查看文件

@@ -23,7 +23,7 @@ ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} create \
--network={{ matrix_dynamic_dns_container_network }} \
-e PUID={{ matrix_user_uid }} \
-e PGID={{ matrix_user_gid }} \
--mount type=bind,src={{ matrix_dynamic_dns_config_path }},dst=/config/ddclient \
--mount type=bind,src={{ matrix_dynamic_dns_config_path }},dst=/config \
{% for arg in matrix_dynamic_dns_container_extra_arguments %}
{{ arg }} \
{% endfor %}


Loading…
取消
儲存