Untitled

 avatar
user_1278752
plain_text
3 years ago
1.5 kB
44
Indexable
server {

    server_name domain.com www.domain.com;
    root /home/root/project/frontend/build;
    index index.html index.htm;
    try_files $uri /index.html;

    location / {
        try_files $uri $uri/ = 404;
    }

  
     location /change-password {
       include proxy_params;
       proxy_pass http://unix:/home/root/project/backend/config.sock;
    }

    location /password_change/done/ {
      include proxy_params;
      proxy_pass http://unix:/home/root/project/backend/config.sock;
    }


      location /accounts/password_reset {
        include proxy_params;
        proxy_pass http://unix:/home/root/project/backend/config.sock;
    }


      location /accounts/reset/<uidb64>/<token> {
        include proxy_params;
        proxy_pass http://unix:/home/root/project/backend/config.sock;
    }


    listen [::]:443 ssl ipv6only=on; # managed by Certbot
    listen 443 ssl; # managed by Certbot
    ssl_certificate /etc/letsencrypt/live/domain.com/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/domain.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


}

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


        listen 80;
        listen [::]:80;

        server_name domain.com www.domain.com;
    return 404; # managed by Certbot
Editor is loading...