Advertisement
gearmobile

Nginx config

Mar 2nd, 2025 (edited)
334
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 0.42 KB | None | 0 0
  1. server {
  2.     listen 80;
  3.  
  4.     server_name realworld-docker.local;
  5.  
  6.     location / {
  7.         proxy_pass http://frontend:3000;
  8.         # WebSocket proxying
  9.         proxy_http_version 1.1;
  10.         proxy_set_header Upgrade $http_upgrade;
  11.         proxy_set_header Connection "upgrade";
  12.     }
  13.  
  14.     location /api {
  15.         proxy_pass http://api:3000;
  16.     }
  17.  
  18.     location /auth {
  19.         proxy_pass http://auth:3000;
  20.     }
  21. }
Tags: nginx
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement