Skip to content

Commit 09c0605

Browse files
author
Alan
committed
add docker hub
1 parent a2f6ead commit 09c0605

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docker/nginx/nginx.conf

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,13 @@ server {
1212
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
1313
proxy_set_header X-Forwarded-Host $server_name;
1414
}
15-
15+
location ~ /about/ {
16+
proxy_pass http://docker_fastapi;
17+
proxy_set_header Host $host;
18+
proxy_set_header X-Real-IP $remote_addr;
19+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
20+
proxy_set_header X-Forwarded-Host $server_name;
21+
}
1622
location / {
1723
root /usr/share/nginx/html;
1824
index index.html index.htm;

0 commit comments

Comments
 (0)