Skip to content

Commit 28d33a6

Browse files
committed
edit nginx config
1 parent f81435d commit 28d33a6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ services:
5757
ports:
5858
- 8081:8081
5959
environment:
60-
- PORT=8081
6160
- TITILER_API_ROOT_PATH=/api/v1/titiler
61+
command: ["uvicorn", "titiler.application.main:app", "--host", "0.0.0.0", "--port", "8081", "--workers", "1"]
6262

6363
nginx:
6464
image: nginx

dockerfiles/nginx.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ http {
66

77
location /api/v1/titiler {
88
rewrite ^/api/v1/titiler(.*)$ $1 break;
9-
proxy_pass http://app:8081;
9+
proxy_pass http://nginx-titiler:8081;
1010
proxy_set_header HOST $host;
1111
proxy_set_header Referer $http_referer;
1212
proxy_set_header X-Forwarded-For $remote_addr;

0 commit comments

Comments
 (0)