Skip to content

Commit

Permalink
Merge pull request #20 from 2024-LOGCON/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
PleBea authored Jan 12, 2024
2 parents 91c55fa + 3972dce commit eacb26f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@
version: '3'

services:
web:
build: .
restart: always
ports:
- '3002:3000'
env_file:
- ./src/env/production.env
depends_on:
- db
db:
image: mysql:8.0.3
platform: linux/x86_64
Expand All @@ -26,3 +17,12 @@ services:
- ./db/mysql/data:/var/lib/mysql
- ./db/mysql/config:/etc/mysql/conf.d
- ./db/mysql/init:/docker-entrypoint-initdb.d
web:
build: .
restart: always
ports:
- '3002:3000'
env_file:
- ./src/env/production.env
depends_on:
- db
2 changes: 1 addition & 1 deletion src/utils/cookie.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { isProduction } from './env';
export const REFRESH_TOKEN_KEY = 'Refresh';

export const REFRESH_TOKEN_OPTION = () => ({
...(isProduction() ? { domain: process.env.SERVICE_DOMAIN } : {}),
...(isProduction() ? { domain: process.env.BACKEND_SERVICE_DOMAIN } : {}),
httpOnly: isProduction(),
secure: isProduction(),
maxAge: 2592000000,
Expand Down

0 comments on commit eacb26f

Please sign in to comment.