Asp.net Core + React + PostgreSql + Nginx Dockerize etme

server {
server_name api.localhost;
listen 80;
listen [::]:80;
root /var/www/myapp;location / {
proxy_pass http://backend:5005;
proxy_http_version 1.1;
proxy_set_header Host $host;
}
}
server {
listen 80;
server_name front.localhost;

location / {
proxy_pass http://frontend:3000;
client_max_body_size 200M;
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;
}
}
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection ‘upgrade’;
proxy_cache_bypass $http_upgrade;

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store