This repository has been archived by the owner on Nov 4, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
33 changed files
with
309 additions
and
211 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,24 @@ | ||
# =================================================================== | ||
# Spring Boot configuration for the "prod" profile. | ||
# =================================================================== | ||
#TODO - set prod logging | ||
logging: | ||
level: | ||
ROOT: WARN | ||
pbs.api: DEBUG | ||
pbs.api.mappers: | ||
ROOT: INFO | ||
web: DEBUG | ||
base.api: DEBUG | ||
base.api.mappers: | ||
AuthMapper: INFO | ||
pbs.api.domain.diaries.DiaryDao.selectUser: INFO | ||
base.api.domain.diaries.DiaryDao.selectUser: INFO | ||
|
||
datasources: | ||
database: | ||
username: admin | ||
password: cderfv | ||
port: 5432 | ||
schema: app | ||
|
||
|
||
spring: | ||
flyway: | ||
locations: "classpath:/db/migration, classpath:/db/prod" | ||
clean-disabled: true | ||
host: database | ||
migration: | ||
locations: ["classpath:/db/migration"] | ||
cleanOnValidationError: false | ||
cleanOnStart: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# =================================================================== | ||
# Main Spring Boot configuration | ||
# =================================================================== | ||
server: | ||
port: 9000 | ||
|
||
|
@@ -22,6 +25,8 @@ spring: | |
mail: | ||
host: smtp.gmail.com | ||
port: 587 | ||
username: "[email protected]" | ||
password: "matpioapp" | ||
from: "Aplikacja Codeito" | ||
debug: false | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
docker-compose -f ./docker/docker-compose.dev.yml up -d --build | ||
docker-compose -f ./docker/docker-compose.dev.yml logs -f --tail 100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
version: '3' | ||
services: | ||
database: | ||
build: ../database | ||
command: postgres -c shared_preload_libraries=pgaudit -c config_file=/etc/postgresql.conf | ||
container_name: dev-database-app | ||
environment: | ||
POSTGRES_USER: admin | ||
POSTGRES_PASSWORD: zaqwsx | ||
POSTGRES_DB: app | ||
PGDATA: /var/lib/postgresql/data/pgdata | ||
volumes: | ||
- ../database/pgdata:/var/lib/postgresql/data/pgdata | ||
- ../database/postgresql.conf:/etc/postgresql.conf | ||
ports: | ||
- "5444:5432" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,41 @@ | ||
version: '3' | ||
version: '3.4' | ||
services: | ||
|
||
database: | ||
container_name: dev-database-app | ||
build: ../database | ||
command: postgres -c shared_preload_libraries=pgaudit -c config_file=/etc/postgresql.conf | ||
container_name: dev-database-app | ||
environment: | ||
POSTGRES_USER: admin | ||
POSTGRES_PASSWORD: zaqwsx | ||
POSTGRES_DB: app | ||
PGDATA: /var/lib/postgresql/data/pgdata | ||
PGDATA: /var/lib/postgresql/pgdata | ||
volumes: | ||
- ../database/pgdata:/var/lib/postgresql/data/pgdata | ||
- ../database/pgdata:/var/lib/postgresql/pgdata | ||
- ../database/postgresql.conf:/etc/postgresql.conf | ||
ports: | ||
- "5444:5432" | ||
|
||
api: | ||
container_name: dev-api-app | ||
build: | ||
context: ../api | ||
dockerfile: ./Dockerfile | ||
target: dev | ||
volumes: | ||
- ../files:/home/app/files | ||
environment: | ||
- "SPRING_PROFILES_ACTIVE=dev, swagger" | ||
depends_on: | ||
- database | ||
|
||
ui: | ||
container_name: dev-ui-app | ||
build: | ||
context: ../ui | ||
dockerfile: ./Dockerfile | ||
target: dev | ||
environment: | ||
- "APIPROXY=api" | ||
ports: | ||
- "3000:3000" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
sudo certbot-auto certonly --standalone -d test.codeito.pl -d www.test.codeito.pl | ||
sudo openssl dhparam -out /etc/letsencrypt/ssl-dhparams.pem 2048 | ||
|
||
sudo /usr/sbin/certbot-auto renew --dry-run | ||
|
||
crontab -e | ||
0 2 * * * sudo /usr/sbin/certbot-auto -q renew |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
add_header Content-Security-Policy "default-src 'self'; frame-ancestors 'none'; script-src 'unsafe-eval'; img-src 'self' data:image:; style-src 'self' 'unsafe-inline'; base-uri 'self'; form-action 'self'; object-src: 'none'"; |
Oops, something went wrong.