Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/FUNDING.yml

This file was deleted.

24 changes: 24 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Deploy to Server

on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Deploy via SSH
uses: appleboy/ssh-action@v1.0.3
with:
host: ${{ secrets.SERVER_HOST }}
username: ${{ secrets.SERVER_USER }}
key: ${{ secrets.SERVER_SSH_KEY }}
port: ${{ secrets.SERVER_PORT }}
script: |
cd /home/deploy/dashboard
git pull origin main
cd /home/deploy/metal_deploy
docker compose up -d dashboard
80 changes: 0 additions & 80 deletions .github/workflows/main.yml

This file was deleted.

14 changes: 5 additions & 9 deletions credentials.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
credentials:
usernames:
admin:
email: admin@gmail.com
name: John Doe
logged_in: False
password: abc
metal:
email: john@sonar-labs.com
name: Metal
password: SkA6z77oN7AABCoA19R
cookie:
expiry_days: 0
key: some_signature_key # Must be string
name: some_cookie_name
pre-authorized:
emails:
- admin@admin.com
name: some_cookie_name
13 changes: 8 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@ services:
ports:
- "8501:8501"
environment:
- AUTH_SYSTEM_ENABLED=False
- BACKEND_API_HOST=backend-api
- BACKEND_API_PORT=8000
- BACKEND_API_USERNAME=admin
- BACKEND_API_PASSWORD=admin
- AUTH_SYSTEM_ENABLED=True
- BACKEND_API_HOST=https://api.metallorum.duckdns.org
# If you are running the API directly on the Docker host instead of via
# the public reverse proxy, swap the line above for the host alias below.
# - BACKEND_API_HOST=host.docker.internal
# - BACKEND_API_PORT=8000
- BACKEND_API_USERNAME=metal
- BACKEND_API_PASSWORD=Sk:6z77oN7-/BCo}19R
volumes:
- .:/home/dashboard
Loading