First, those settings must be added to Traefik’s static configuration file (traefik.yaml), not to a dynamic configuration file such as configs/nextcloud1.yml.
Before editing the file, make a backup copy, for example:
cp -iv traefik.yaml traefik.yaml.bak
After modifying traefik.yaml, restart Traefik:
systemctl --user restart traefik
Be aware that restarting Traefik will disconnect all currently connected clients, so it is best done during non-working hours.
Second, the YAML indentation appears to be lost in your forum post. I assume this is just a copy/paste issue, but please double-check the actual file contents because YAML is indentation-sensitive and Traefik will ignore or reject invalid configuration. For example:
entryPoints:
http:
address: :80
transport:
respondingTimeouts:
readTimeout: 300s
idleTimeout: 300s
https:
address: :443
transport:
respondingTimeouts:
readTimeout: 300s
idleTimeout: 300s
metrics:
address: :8082