• Resolved vladaman

    (@vladaman)


    Freshly installed on WordPress. Plugin diagnosis reports that IP 192.168.16.3 Not a valid url

    We run WordPress within docker and it’s accessible vi it’s own hostname. How can I configure URL which the static plugin should use to generate static files?

    • This topic was modified 3 years, 5 months ago by vladaman.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author patrickposner

    (@patrickposner)

    Hey @vladaman,

    thanks for your message!

    You need a real domain to work with Simply Static. Simply Static uses wp_remote_get() to make HTTP requests to your WordPress website which only works with a URL, not with an IP.

    Best regards,

    Patrick

    Thread Starter vladaman

    (@vladaman)

    @patrickposner Thanks Patrick. Yes we have real domain and https certificate. For some reason the plugin is picking up an IP and not the domain. How can we force the plugin to use a domain name?

    Plugin Author patrickposner

    (@patrickposner)

    Hey @vladaman,

    that can happen (especially with a Docker setup), but no worries, there is a little filter that you can use:

    add_filter( 'ss_origin_url', function( $home_url ) {
        $home_url = 'https://url-to-wp.com';
        return $home_url;
    });

    Strange because we have this plugin with a site on a naked server IP address (development site) and it works fine. No error messages on the diagnostics page.

    • This reply was modified 3 years, 4 months ago by TWD.
Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Plugin doesn’t work – IP is not Not a valid url’ is closed to new replies.