Need help to deploy Angular SSR application

Job ID: 34707255

Budget: $10 – $30 USD

Hi , I have my website www.indiacamps.com down because of faulty nginx configuration.

it is Angular SSR based application , running with pm2 and proxied using nginx. Please help.

As of now its domain.conf file is as following

server {

server_name indiacamps.com www.indiacamps.com;
root /home/ubuntu/dist/india-camps-web/browser;
server_tokens off;

# index index.html;
location / {
#root /home/ubuntu/dist/india-camps-web/browser;

# try_files $uri $uri/ @express;
# proxy_pass http://localhost:4000;
try_files $uri $uri/ /index.html;
}



listen [::]:443 ssl http2 ipv6only=on; # managed by Certbot
listen 443 ssl http2; # managed by Certbot
proxy_set_header Connection '';
keepalive_timeout 10;


ssl_certificate /etc/letsencrypt/live/indiacamps.com/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/indiacamps.com/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
gzip on;
gzip_disable "msie6";
gzip_vary on;
gzip_proxied any;
gzip_comp_level 6;
gzip_buffers 16 8k;
gzip_http_version 1.1;
gzip_types application/javascript application/rss+xml application/vnd.ms-fontobject application/x-font application/x-font-opentype application/x-font-otf application/x-font-truetype application/x-font-ttf application/x-javascript application/xhtml+xml application/xml font/opentype font/otf font/ttf image/svg+xml image/x-icon text/css text/javascript text/plain text/xml;




}

server {
if ($host = www.indiacamps.com) {
return 301 https://$host$request_uri;
} # managed by Certbot


if ($host = indiacamps.com) {
return 301 https://$host$request_uri;
} # managed by Certbot




listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
Related categories: JavaScript Linux Nginx Node.js AngularJS