Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dyndns plugin unknown directive #2520

Closed
Zachar2 opened this Issue Mar 15, 2019 · 3 comments

Comments

Projects
None yet
2 participants
@Zachar2
Copy link

Zachar2 commented Mar 15, 2019

1. Which version of Caddy are you using (caddy -version)?

0.11.5

2. What are you trying to do?

Deploy Caddy using official creator with 'dyndns' and 'tls.dns.cloudflare' plugins.

3. What is your Caddyfile?

paste entire Caddyfile here - DO NOT REDACT ANYTHING (except credentials)
subdomain1.example.com {
	on startup "\"C:\Caddy\php\php-cgi.exe\" -b 127.0.0.1:9000" &

	ext .html .htm .php
	root C:\Caddy\www\subdomain1.example.com\html

	fastcgi / 127.0.0.1:9000 php

	gzip

	tls {
		dns cloudflare
	}

	log C:\Caddy\logs\subdomain1.example.com.log {
		rotate_size 1
		rotate_age  7
		rotate_keep 2
	}

	errors C:\Caddy\logs\subdomain1.example.com_errors.log {
		rotate_size 1
		rotate_age  7
		rotate_keep 2
	}

	header / {
		Strict-Transport-Security "max-age=31536000;"
		X-XSS-Proection "1; mode=block"
		X-Content-Type-Options "nosniff"
	}
}

http://localhost http://192.168.1.11 {
	ext .html .htm .php
	root C:\Caddy\www\subdomain1.example.com\html

	fastcgi / 127.0.0.1:9000 php

	gzip

	dyndns {
		provider cloudflare
		ipaddress http://whatismyip.akamai.com/
		auth ********edited******** name@email.com
		domains subdomain2.example.com
		period 30m
	}
}

4. How did you run Caddy (give the full command and describe the execution environment)?

Using native Windows 10 64bit command line tool opened with system administrator privileges. The command was executed from within Caddy directory:
caddy.exe -agree -email name@email.com -log C:\Caddy\logs\Caddy.log

5. Please paste any relevant HTTP request(s) here.

6. What did you expect to see?

Activating privacy features... done.

Serving HTTPS on port 443
https://subdomain1.example.com


Serving HTTP on port 80
http://localhost
http://192.168.1.11
http://subdomain1.example.com

7. What did you see instead (give full error messages and/or log)?

2019/03/15 17:00:26 Caddyfile:42 - Error during parsing: Unknown directive 'dyndns'

8. Why is this a bug, and how do you think this should be fixed?

'dyndns' plugin is not being detected or is not being added during the process of building Caddy.

9. What are you doing to work around the problem in the meantime?

I read that it's possible to compile Caddy manually which I'm willing to try.

10. Please link to any related issues, pull requests, and/or discussion.

Issue discussed on Caddy forum
Issue discussed on GitHub

Bonus: What do you use Caddy for? Why did you choose Caddy?

Homelab and private websites.

@mholt

This comment has been minimized.

Copy link
Owner

mholt commented Mar 15, 2019

Hi, unfortunately since you did not fill out the issue template, we don't have enough information to assist you. :( If you will update your post to answer the questions in the bug report template, we can help and reopen the issue. Thanks!

@mholt mholt closed this Mar 15, 2019

@Zachar2

This comment has been minimized.

Copy link
Author

Zachar2 commented Mar 15, 2019

I updated the information. Please, let me know if something is still missing. Thanks.

@mholt

This comment has been minimized.

Copy link
Owner

mholt commented Mar 15, 2019

@Zachar2 Thanks. Upon investigating, it seems that the plugin author has not submitted a pull request to add this directive to Caddy: linkonoid/caddy-dyndns#1

Hence, Caddy doesn't recognize it unless you do it manually.

This is something that will have to be resolved by the plugin authors -- thanks for the question!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.