Skip to content

Commit

Permalink
#116 Make images-base-path in application.yml configurable for develo…
Browse files Browse the repository at this point in the history
…pment
  • Loading branch information
nck974 committed Nov 12, 2024
1 parent 1b32e2c commit e1d3ae5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion diogenes/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ file:
# Location in file system:
uploads-dir: ./uploads
images-dir: files/items/images
images-host: http://localhost:8080
# API Endpoint path
images-base-path: ${server.servlet.context-path}/api/v1/files/images/
images-base-path: ${file.images-host}${server.servlet.context-path}/api/v1/files/images/

diogenes:
# Enable authentication
Expand Down
4 changes: 1 addition & 3 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: "3.8"

services:
diogenes-ng:
container_name: diogenes-ng
Expand All @@ -24,7 +22,7 @@ services:
- SPRING_DATASOURCE_JDBC-URL=jdbc:postgresql://diogenes-db:5432/diogenes_db
- SPRING_DATASOURCE_USERNAME=${DATABASE_USER}
- SPRING_DATASOURCE_PASSWORD=${DATABASE_PASSWORD}
- SPRING_APPLICATION_JSON={"jwt.secret":"${TOKEN_SECRET}"}
- SPRING_APPLICATION_JSON={"jwt.secret":"${TOKEN_SECRET}", "file.images-host":""}
ports:
- 8080:8080
volumes:
Expand Down

0 comments on commit e1d3ae5

Please sign in to comment.