0

私のアプリはhttps://nocodefunctions.com/nocodeapp-web-front-1.0/でアクセスできます

https://nocodefunctions.comと http バージョン: http://nocodefunctions.comで簡単にアクセスできるようにしたいと思います。

現在の conf では、目的の結果が得られません (ここから取得):

upstream payara{
    least_conn;

    server localhost:8080 max_fails=3 fail_timeout=5s;
    server localhost:8181 max_fails=3 fail_timeout=5s;
}
server {
    if ($host = nocodefunctions.com) {
        return 301 https://$host/$request_uri;
    } # managed by Certbot


    listen        80;
    #Replace with your domain
    server_name   nocodefunctions.com;
    return        301 https://$host$request_uri;


}

server {
    listen        443 ssl;
    server_name   nocodefunctions.com;
    ssl_certificate /etc/letsencrypt/live/xxxxxxxxxxx # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/nocodefunctions.com/xxxxxxxxx # managed by Certbot

    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
    ssl_prefer_server_ciphers on;
    ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH";

    location / {
        proxy_set_header  Host $host;
        proxy_set_header  X-Real-IP $remote_addr;
        proxy_set_header  X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_pass http://payara;
    }
}

LetsEncrypt、Payara Micro を使用しています。

4

1 に答える 1