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

Managed Vhosts HTTPS support #67

Open
ghost opened this issue May 31, 2022 · 0 comments
Open

Managed Vhosts HTTPS support #67

ghost opened this issue May 31, 2022 · 0 comments

Comments

@ghost
Copy link

ghost commented May 31, 2022

In the latest images ssl 443 support seems not be enabled by default.

Adding the following nginx conf in /etc/nginx/sites/https.dummytag.hypernode.io.conf makes it work again.
I was not able to auto generate this with the managed vhost commands

include /etc/nginx/app/dummytag.hypernode.io/http.*;

# SSL
server {
    server_name dummytag.hypernode.io;
    listen 443 ssl http2 default_server;
    set $_HN_ENVIRONMENT "production";

    include /etc/nginx/ssl_rules_intermediate.conf;
    ssl_certificate "/etc/nginx/ssl/*.hypernode.local.crtkeyca";
    ssl_certificate_key "/etc/nginx/ssl/*.hypernode.local.crtkeyca";

    include /etc/nginx/server.generic_includes.conf;
    include /etc/nginx/app/server.*;
    include /etc/nginx/app/dummytag.hypernode.io/server.*;
    include /etc/nginx/app/dummytag.hypernode.io/public.*;
}

# SSL staging
server {
    server_name dummytag.hypernode.io;
    listen 8443 ssl http2 default_server;
    set $_HN_ENVIRONMENT "staging";

    include /etc/nginx/ssl_rules_intermediate.conf;
    ssl_certificate "/etc/nginx/ssl/*.hypernode.local.crtkeyca";
    ssl_certificate_key "/etc/nginx/ssl/*.hypernode.local.crtkeyca";

    include /etc/nginx/server.generic_includes.conf;
    include /etc/nginx/app/server.*;
    include /etc/nginx/app/dummytag.hypernode.io/server.*;
    include /etc/nginx/app/dummytag.hypernode.io/staging.*;
}

bash /etc/my_init.d/60_restart_services.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

0 participants