oh ok sorry but know i outputs this and still no https:
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
# configuration file /etc/nginx/nginx.conf:
# configuration file /etc/nginx/nginx.conf:
events { worker_connections 1024; }
http {
server {
listen 80;
server_name localhost;
root agora-next;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
location /api/ {
proxy_pass http://localhost:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}
include /etc/nginx/agoratsp.conf; ### ADD THIS LINE
}
# configuration file /etc/nginx/agoratsp.conf:
server {
listen 80;
listen [::]:80;
server_name agoratsp.com www.agoratsp.com;
#include /etc/nginx/snippets/letsencrypt-acme-challenge.conf;
location / {
# reverse proxy for next server
proxy_pass http://localhost:3000/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
location ^~ /.well-known/acme-challenge/ {
allow all;
default_type "text/plain";
root /agora-next/out;
}
}