You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
server {
root /var/www/html;
index index.html index.htm index.nginx-debian.html;
server_name your_domain www.your_domain;# if you dont have a domain name then edit this line as (server_name _;)#For root directory and My Custom port is 8081 here
location / {
proxy_pass http://localhost:8081;#whatever port your app runs on
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;
}
#For End Point memes and port 8081
location =/memes {
proxy_pass http://localhost:8081;#whatever port your app runs on
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;
}
#For End Point swagger-ui and port 8080
location =/swagger-ui/ {
proxy_pass http://localhost:8080;#whatever port your app ru$
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;
}
}