Что не так с моей конфигурацией, когда я открываю http://management.teampapercloud.in/ Я вижу домашнюю страницу nginx по умолчанию, она не достигает сервера моего узла, работающего на ПОРТ 3000.
server {
server_name management.teampapercloud.in www.management.teampapercloud.in;
listen 80;
root /usr/share/nginx/;
# index index.html index.htm;
location /static {
alias /home/ubuntu/papercloud/static;
}
location /media {
alias /home/ubuntu/papercloud/paper_cloud/paper_cloud/media;
}
location = /favicon.ico { access_log off; log_not_found off; }
location / {
add_header Access-Control-Allow-Origin '*';
proxy_pass_header Server;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Scheme $scheme;
proxy_set_header X-Forwarded-Protocol $scheme;
proxy_connect_timeout 50;
proxy_read_timeout 50;
# This line is important as it tells nginx to channel all requests to port 8000.
# We will later run our wsgi application on this port using gunicorn.
proxy_pass http://127.0.0.1:3000;
client_max_body_size 20m;
}
location /.well-known/acme-challenge/ {
try_files $uri $uri/ =404;
}
}