Skip to content

--proxy sites not including /conf/nginx/* so site SSL do not work #288

@rslonik

Description

@rslonik

Hi,

When creating a new proxy site (wo site create site.com --proxy=127.0.0.1=3000) the host config doesn't include include {{webroot}}/conf/nginx/*.conf; from template.

So when you install HTTPS on that site (wo site update site.com --le) the /conf/nginx/ssl.conf is not used and the SSL won't work.

I tried changing last two lines of /usr/lib/wo/templates/virtualconf.mustache from:

include common/locations-wo.conf;{{/proxy}}
include {{webroot}}/conf/nginx/*.conf;

to:

include common/locations-wo.conf;
include {{webroot}}/conf/nginx/*.conf;{{/proxy}}

But it didn't work. I certified that this is the file being used by putting some random comment and creating again the site.

Can someone help fixing this template?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions