Skip to content

Commit

Permalink
Renamed the project to watchtower
Browse files Browse the repository at this point in the history
  • Loading branch information
joemarct committed Feb 12, 2021
1 parent 0fe4365 commit 2b0926f
Show file tree
Hide file tree
Showing 33 changed files with 93 additions and 12,193 deletions.
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
slpnotifyui
watchtowerui
static
.env
4 changes: 2 additions & 2 deletions .env_template
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
POSTGRES_HOST=postgres
POSTGRES_DB=slpnotify
POSTGRES_DB=watchtower
POSTGRES_USER=postgres
POSTGRES_PASSWORD=badpassword

TELEGRAM_BOT_TOKEN=990633125:AAGtPGGfYwRHy1hbH2sUGsUrNChYVnE9TaU
TELGRAM_BOT_USER=slpnotify_bot
TELGRAM_BOT_USER=watchtower_bot

REDIS_HOST=redis
REDIS_PORT=6379
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# slpnotify
Reliable SLP transaction notifications
# watchtower

WatchTower.cash is a Bitcoin Cash (BCH) blockchain watcher and notification infrastructure.
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ services:
env_file:
- .env_template
volumes:
- ../postgres-slpnotify-data:/var/lib/postgresql/data
- ../postgres-watchtower-data:/var/lib/postgresql/data
backend:
build: .
ports:
Expand All @@ -20,7 +20,7 @@ services:
- ./:/code
frontend:
build:
context: ./slpnotifyui
context: ./watchtowerui
ports:
- "8080:8080"
redis:
Expand Down
44 changes: 22 additions & 22 deletions kube/prod/k8s_prod.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
apiVersion: v1
kind: Service
metadata:
name: slpnotify
namespace: spice-prod
name: watchtower
namespace: prod
labels:
app: slpnotify
app: watchtower
spec:
selector:
app: slpnotify
app: watchtower
type: NodePort
ports:
- name: backend
Expand All @@ -18,26 +18,26 @@ spec:
apiVersion: apps/v1
kind: Deployment
metadata:
name: slpnotify
namespace: spice-prod
name: watchtower
namespace: prod
labels:
app: slpnotify
app: watchtower
spec:
replicas: 1
selector:
matchLabels:
app: slpnotify
app: watchtower
template:
metadata:
labels:
app: slpnotify
app: watchtower
spec:
containers :
- name: slpnotify
- name: watchtower
image: 967349720785.dkr.ecr.ap-southeast-1.amazonaws.com/spicetrade-prod:6a694a282095
env:
- name: POSTGRES_DB
value: slpnotify-prod
value: watchtower-prod
- name: POSTGRES_HOST
valueFrom:
secretKeyRef:
Expand All @@ -56,52 +56,52 @@ spec:
- name: REDIS_HOST
valueFrom:
secretKeyRef:
name: slpnotify-redis-credentials
name: watchtower-redis-credentials
key: hostname
- name: REDIS_PASSWORD
valueFrom:
secretKeyRef:
name: slpnotify-redis-credentials
name: watchtower-redis-credentials
key: password
- name: REDIS_PORT
valueFrom:
secretKeyRef:
name: slpnotify-redis-credentials
name: watchtower-redis-credentials
key: port
- name: TELEGRAM_BOT_TOKEN
valueFrom:
secretKeyRef:
name: slpnotify-credentials
name: watchtower-credentials
key: telegrambottoken
- name: TELEGRAM_BOT_USER
valueFrom:
secretKeyRef:
name: slpnotify-credentials
name: watchtower-credentials
key: telegrambotuser
- name: SLACK_BOT_USER_TOKEN
valueFrom:
secretKeyRef:
name: slpnotify-credentials
name: watchtower-credentials
key: slackbotusertoken
- name: SLACK_VERIFICATION_TOKEN
valueFrom:
secretKeyRef:
name: slpnotify-credentials
name: watchtower-credentials
key: slackverificationtoken
- name: SLACK_CLIENT_ID
valueFrom:
secretKeyRef:
name: slpnotify-credentials
name: watchtower-credentials
key: slackclientid
- name: SLACK_CLIENT_SECRET
valueFrom:
secretKeyRef:
name: slpnotify-credentials
name: watchtower-credentials
key: slackclientsecret
- name: SLACK_SIGNING_SECRET
valueFrom:
secretKeyRef:
name: slpnotify-credentials
name: watchtower-credentials
key: slacksigningsecret
nodeSelector:
eks.amazonaws.com/nodegroup: slpnotify-node-group
eks.amazonaws.com/nodegroup: watchtower-node-group
46 changes: 23 additions & 23 deletions kube/staging/k8s_staging.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
apiVersion: v1
kind: Service
metadata:
name: slpnotify
namespace: spice-staging
name: watchtower
namespace: staging
labels:
app: slpnotify
app: watchtower
spec:
selector:
app: slpnotify
app: watchtower
type: NodePort
ports:
- name: backend
Expand All @@ -18,26 +18,26 @@ spec:
apiVersion: apps/v1
kind: Deployment
metadata:
name: slpnotify
namespace: spice-staging
name: watchtower
namespace: staging
labels:
app: slpnotify
app: watchtower
spec:
replicas: 1
selector:
matchLabels:
app: slpnotify
app: watchtower
template:
metadata:
labels:
app: slpnotify
app: watchtower
spec:
containers :
- name: slpnotify
image: 967349720785.dkr.ecr.ap-southeast-1.amazonaws.com/slpnotify-staging:842ed2488f25
- name: watchtower
image: 967349720785.dkr.ecr.ap-southeast-1.amazonaws.com/watchtower-staging:842ed2488f25
env:
- name: POSTGRES_DB
value: slpnotify-prod
value: watchtower-prod
- name: POSTGRES_HOST
valueFrom:
secretKeyRef:
Expand All @@ -56,52 +56,52 @@ spec:
- name: REDIS_HOST
valueFrom:
secretKeyRef:
name: slpnotify-redis-credentials
name: watchtower-redis-credentials
key: hostname
- name: REDIS_PASSWORD
valueFrom:
secretKeyRef:
name: slpnotify-redis-credentials
name: watchtower-redis-credentials
key: password
- name: REDIS_PORT
valueFrom:
secretKeyRef:
name: slpnotify-redis-credentials
name: watchtower-redis-credentials
key: port
- name: TELEGRAM_BOT_TOKEN
valueFrom:
secretKeyRef:
name: slpnotify-credentials
name: watchtower-credentials
key: telegrambottoken
- name: TELEGRAM_BOT_USER
valueFrom:
secretKeyRef:
name: slpnotify-credentials
name: watchtower-credentials
key: telegrambotuser
- name: SLACK_BOT_USER_TOKEN
valueFrom:
secretKeyRef:
name: slpnotify-credentials
name: watchtower-credentials
key: slackbotusertoken
- name: SLACK_VERIFICATION_TOKEN
valueFrom:
secretKeyRef:
name: slpnotify-credentials
name: watchtower-credentials
key: slackverificationtoken
- name: SLACK_CLIENT_ID
valueFrom:
secretKeyRef:
name: slpnotify-credentials
name: watchtower-credentials
key: slackclientid
- name: SLACK_CLIENT_SECRET
valueFrom:
secretKeyRef:
name: slpnotify-credentials
name: watchtower-credentials
key: slackclientsecret
- name: SLACK_SIGNING_SECRET
valueFrom:
secretKeyRef:
name: slpnotify-credentials
name: watchtower-credentials
key: slacksigningsecret
nodeSelector:
eks.amazonaws.com/nodegroup: slpnotify-node-group
eks.amazonaws.com/nodegroup: watchtower-node-group
2 changes: 1 addition & 1 deletion main/migrations/0008_load_fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class Migration(migrations.Migration):

def create_super_user(apps, schema_editor):
from django.contrib.auth.models import User
user = User.objects.create_user('admin', 'admin@slpnotify.com', 'admindefault2020')
user = User.objects.create_user('admin', 'admin@watchtower.com', 'admindefault2020')
user.is_superuser = True
user.is_staff = True
user.save()
Expand Down
2 changes: 1 addition & 1 deletion main/tasks.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Dedicated to all celery tasks for SLPNotify Only
Dedicated to all celery tasks for watchtower Only
"""
from __future__ import absolute_import, unicode_literals
import logging
Expand Down
2 changes: 1 addition & 1 deletion main/utils/spicebot_token_registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def subscribe(self):
response = self.subscribe_to_address(
self.subscriber.id,
slp.address,
'https://spicebot.scibizinformatics.com/slpnotify/',
'https://spicebot.scibizinformatics.com/watchtower/',
self.token.tokenid,
self.token.name
)
Expand Down
2 changes: 1 addition & 1 deletion main/utils/telegram_responses.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
MESSAGES['not_connected'] = """<b>Account not yet connected</b>
\nConnect your SLP Notify account to telegram first
\nIf you haven't registered yet, go to: https://www.slpnotify.com/signup"""
\nIf you haven't registered yet, go to: https://www.watchtower.com/signup"""

def get_message(key):
return MESSAGES[key]
2 changes: 1 addition & 1 deletion manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@


def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'slpnotify.settings')
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'watchtower.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
Expand Down
2 changes: 1 addition & 1 deletion pytest.ini
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[pytest]
DJANGO_SETTINGS_MODULE=slpnotify.test_settings
DJANGO_SETTINGS_MODULE=watchtower.test_settings
addopts = --cov=. --cov-report=html
3 changes: 0 additions & 3 deletions slpnotify/test_settings.py

This file was deleted.

23 changes: 0 additions & 23 deletions slpnotifyui/.gitignore

This file was deleted.

22 changes: 0 additions & 22 deletions slpnotifyui/Dockerfile

This file was deleted.

Loading

0 comments on commit 2b0926f

Please sign in to comment.