Skip to content

Commit a6c52fa

Browse files
authored
Update README.md
1 parent e9dfbf9 commit a6c52fa

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

README.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ Open the Nginx configuration file:
5252

5353
Add the following configuration. Change YOUR_DOMAIN_NAME with your domain name:
5454

55-
```server {
55+
```
56+
server {
5657
listen 80;
5758
server_name YOUR_DOMAIN_NAME;
5859
return 301 https://$host$request_uri;
@@ -67,20 +68,28 @@ server {
6768
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
6869
6970
location / {
70-
proxy_pass http://localhost:4173;
71+
proxy_pass http://localhost:4173; # Frontend React app
7172
proxy_set_header Host $host;
7273
proxy_set_header X-Real-IP $remote_addr;
7374
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
7475
proxy_set_header X-Forwarded-Proto $scheme;
7576
}
7677
7778
location /api/ {
78-
proxy_pass http://localhost:3000;
79+
proxy_pass http://localhost:3000; # Backend API
7980
proxy_set_header Host $host;
8081
proxy_set_header X-Real-IP $remote_addr;
8182
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
8283
proxy_set_header X-Forwarded-Proto $scheme;
8384
}
85+
location /mailhog/ {
86+
proxy_pass http://localhost:8025; # MailHog web interface
87+
proxy_http_version 1.1;
88+
proxy_set_header Upgrade $http_upgrade;
89+
proxy_set_header Connection 'upgrade';
90+
proxy_set_header Host $host;
91+
proxy_cache_bypass $http_upgrade;
92+
}
8493
}
8594
```
8695

0 commit comments

Comments
 (0)