Skip to content

Commit 3319a4b

Browse files
committed
bug fix on nginx.conf for rust api server
1 parent d272903 commit 3319a4b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

server/src/common/repository/base.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ async fn get_conn_pool() -> Pool<Postgres> {
8282
let postgres_url = format!(
8383
"postgres://{postgres_user}:{postgres_password}@{postgres_host}/{postgres_db}{ssl_mode}"
8484
);
85-
//info!("connection string {}", postgres_url);
85+
// info!("DB connection string: {}", postgres_url);
8686

8787
let conn = sqlx::postgres::PgPool::connect(&postgres_url).await.unwrap();
8888
let result = sqlx::query_as::<_, Version>(r"

webclient/nginx.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ server {
3737

3838
# Proxy requests to the API server
3939
location /v1/ {
40-
proxy_pass http://localhost:4003/;
40+
proxy_pass http://localhost:4003/v1/;
4141
proxy_set_header Host $host;
4242
proxy_set_header X-Real-IP $remote_addr;
4343
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

0 commit comments

Comments
 (0)