mirror of
https://github.com/stonith404/pingvin-share.git
synced 2025-01-29 01:28:59 -05:00
chore: update configuration settings
This commit is contained in:
parent
388ac395ba
commit
b073bb31b0
6 changed files with 9 additions and 49 deletions
|
@ -1,12 +1,5 @@
|
|||
# DATABASE
|
||||
DB_URL="postgresql://${DB_USER}:${DB_PASSWORD}@${DB_HOST}/pingvin-share?schema=public"
|
||||
DB_USER=postgres
|
||||
DB_PASSWORD=postgres
|
||||
DB_HOST=db:5432
|
||||
|
||||
# GENERAL
|
||||
APP_URL=http://localhost:3000
|
||||
BACKEND_URL=http://backend:8080
|
||||
SHOW_HOME_PAGE=true
|
||||
ALLOW_REGISTRATION=true
|
||||
MAX_FILE_SIZE=1000000000
|
||||
|
|
|
@ -1,10 +1,8 @@
|
|||
name: Create Docker Image for Backend
|
||||
name: Create Docker Image
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: main
|
||||
paths:
|
||||
- "backend/**"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
@ -18,8 +16,8 @@ jobs:
|
|||
uses: docker/setup-buildx-action@v1
|
||||
- name: login to docker registry
|
||||
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
|
||||
- name: build the image
|
||||
- name: Build the image
|
||||
run: |
|
||||
cd backend && docker buildx build --push \
|
||||
--tag stonith404/pingvin-share-backend:latest \
|
||||
docker buildx build --push \
|
||||
--tag stonith404/pingvin-share:latest \
|
||||
--platform linux/amd64,linux/arm64 .
|
25
.github/workflows/docker-image-frontend.yml
vendored
25
.github/workflows/docker-image-frontend.yml
vendored
|
@ -1,25 +0,0 @@
|
|||
name: Create Docker Image for Frontend
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: main
|
||||
paths:
|
||||
- "frontend/**"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: checkout code
|
||||
uses: actions/checkout@v2
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v1
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
- name: login to docker registry
|
||||
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
|
||||
- name: build the image
|
||||
run: |
|
||||
cd frontend && docker buildx build --push \
|
||||
--tag stonith404/pingvin-share-frontend:latest \
|
||||
--platform linux/amd64,linux/arm64 .
|
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -36,4 +36,4 @@ yarn-error.log*
|
|||
|
||||
# project specific
|
||||
/backend/uploads/
|
||||
/uploads/
|
||||
/data/
|
|
@ -1,12 +1,7 @@
|
|||
# Environment variables declared in this file are automatically made available to Prisma.
|
||||
|
||||
DB_URL="postgresql://${DB_USER}:${DB_PASSWORD}@${DB_HOST}/pingvin-share?schema=public"
|
||||
DB_USER=postgres
|
||||
DB_PASSWORD=postgres
|
||||
DB_HOST=localhost:5432
|
||||
|
||||
# CONFIGURATION
|
||||
APP_URL=http://localhost:3000
|
||||
ALLOW_REGISTRATION=true
|
||||
MAX_FILE_SIZE=5000000000
|
||||
|
||||
JWT_SECRET=csdkdfmfdfdkslfjskl3987rfkhjgdfnkjdf
|
||||
# SECURITY
|
||||
JWT_SECRET=random-string
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
BACKEND_URL=http://localhost:8080
|
||||
SHOW_HOME_PAGE=true
|
||||
ALLOW_REGISTRATION=true
|
||||
MAX_FILE_SIZE=1000000000
|
||||
MAX_FILE_SIZE=1000000000
|
||||
|
|
Loading…
Add table
Reference in a new issue