fix: fix env file for docker compose
This commit is contained in:
@@ -83,7 +83,7 @@ jobs:
|
|||||||
docker rm chat || true
|
docker rm chat || true
|
||||||
|
|
||||||
cd /home/shared/iceberg/chat/chat-api
|
cd /home/shared/iceberg/chat/chat-api
|
||||||
docker compose up -d
|
REPO_LOWER=$REPO_LOWER TAG=$TAG docker compose up -d
|
||||||
|
|
||||||
docker image prune -af
|
docker image prune -af
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,9 @@ services:
|
|||||||
image: gitea.iceberg.black/${REPO_LOWER}:${TAG}
|
image: gitea.iceberg.black/${REPO_LOWER}:${TAG}
|
||||||
container_name: chat
|
container_name: chat
|
||||||
|
|
||||||
|
env_file:
|
||||||
|
- .env
|
||||||
|
|
||||||
ports:
|
ports:
|
||||||
- "6066:3000"
|
- "6066:3000"
|
||||||
|
|
||||||
|
|||||||
+4
-2
@@ -5,7 +5,6 @@ use crate::auth::middleware::auth_middleware;
|
|||||||
|
|
||||||
use axum::extract::Extension;
|
use axum::extract::Extension;
|
||||||
use axum::{Router, middleware, routing::get};
|
use axum::{Router, middleware, routing::get};
|
||||||
use dotenvy::dotenv;
|
|
||||||
use std::net::SocketAddr;
|
use std::net::SocketAddr;
|
||||||
|
|
||||||
pub async fn protected_route(Extension(claims): Extension<Claims>) -> String {
|
pub async fn protected_route(Extension(claims): Extension<Claims>) -> String {
|
||||||
@@ -33,7 +32,10 @@ pub fn app() -> Router {
|
|||||||
|
|
||||||
#[tokio::main]
|
#[tokio::main]
|
||||||
async fn main() {
|
async fn main() {
|
||||||
dotenv().ok();
|
#[cfg(debug_assertions)]
|
||||||
|
{
|
||||||
|
dotenvy::dotenv().ok();
|
||||||
|
}
|
||||||
|
|
||||||
// let jwks = keycloak::get_jwks()
|
// let jwks = keycloak::get_jwks()
|
||||||
// .await
|
// .await
|
||||||
|
|||||||
Reference in New Issue
Block a user