Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
827 B
1
Indexable
Never
server {
    listen 80;
    server_name esustav.estudent.hr;

    location / {
        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-Host $host;
	    proxy_set_header X-Forwarded-Server $host;
	    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

	    proxy_pass http://esustav_fe:3000;

        proxy_redirect off;

        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
    }

    location /api {
        proxy_set_header Host $host;

	    proxy_pass http://esustav_api:8000/api;

        alias http://esustav_api:8000/api/static/;
  
	}  

    location /pgadmin4 {
        proxy_set_header Host $host;
        proxy_pass http://esustav_pgadmin:80/;
        proxy_redirect off;
    }

}