System Information
- Strapi Version: 3.4.6
- Operating System:
- Database: mongo
- Node Version: v15.11.0
- NPM Version: 7.6.0
- Yarn Version: 1.22.5
Hello, I deployd strapi on my VPS. Using nginx proxy:
server {
listen 80;
listen [::]:80;
root /var/www/data.poutnicesty.cz/;
index index.html index.htm index.nginx-debian.html;
server_name 89.221.222.178;
gzip on;
gzip_types text/plain application/xml text/css application/javascript;
gzip_min_length 1000;
access_log /var/log/nginx/data.poutnicesty.cz.access.log;
error_log /var/log/nginx/data.poutnicesty.cz.error.log;
port_in_redirect off;
proxy_set_header Host $host:$server_port;
location / {
proxy_pass http://0.0.0.0:1337;
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;
}
}
when use
curl -v http://0.0.0.0:1337
it ok, I get response… so internal is ok. (I tried also 127.0.0.1)
when use
curl -v http://89.221.222.178
connection is refused.
any idea why? just the outside connection is problem everything else looks good
thanks for any help, I spent many hours by finding this solutions.
- it is built via yarn (with ignore engines).
- app is started via PM2 and it also seems ok (in log)
- I deployed that with build folder because of lack of space on VPS
port is allowed
80/tcp ALLOW Anywhere
27017 ALLOW 89.221.222.178
22/tcp ALLOW Anywhere
22 ALLOW Anywhere
27017 ALLOW Anywhere
80 ALLOW Anywhere
443 ALLOW Anywhere
443/tcp ALLOW Anywhere
8090 ALLOW Anywhere
Nginx Full ALLOW Anywhere
27117 ALLOW Anywhere
8050 ALLOW Anywhere
1337 ALLOW Anywhere
8080 ALLOW Anywhere
OpenSSH ALLOW Anywhere
8090/tcp ALLOW Anywhere
1337/tcp ALLOW Anywhere
8080/tcp ALLOW Anywhere
80/tcp (v6) ALLOW Anywhere (v6)
22/tcp (v6) ALLOW Anywhere (v6)
22 (v6) ALLOW Anywhere (v6)
27017 (v6) ALLOW Anywhere (v6)
80 (v6) ALLOW Anywhere (v6)
443 (v6) ALLOW Anywhere (v6)
443/tcp (v6) ALLOW Anywhere (v6)
8090 (v6) ALLOW Anywhere (v6)
Nginx Full (v6) ALLOW Anywhere (v6)
27117 (v6) ALLOW Anywhere (v6)
8050 (v6) ALLOW Anywhere (v6)
1337 (v6) ALLOW Anywhere (v6)
8080 (v6) ALLOW Anywhere (v6)
OpenSSH (v6) ALLOW Anywhere (v6)
8090/tcp (v6) ALLOW Anywhere (v6)
1337/tcp (v6) ALLOW Anywhere (v6)
8080/tcp (v6) ALLOW Anywhere (v6)