-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSpacefile
More file actions
73 lines (70 loc) · 1.72 KB
/
Spacefile
File metadata and controls
73 lines (70 loc) · 1.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# Spacefile Docs: https://go.deta.dev/docs/spacefile/v0
v: 0
micros:
- name: MainBot
src: ./ChatBot/
engine: python3.9
public: true
path: webhook
run: uvicorn main:app
dev: .venv/bin/uvicorn main:app --reload
presets:
env:
- name: TOKEN
description: Telegram Token
default: ""
- name: ADMIN_PASSWORD
description: Password for admin panel
default: ""
# public_routes:
# - "/webhook/*"
# - "/webhook"
- name: Notifier-Sub
src: ./Notifier-Sub/
engine: python3.9
public: true
path: external
# run: uvicorn main:app
# dev: .venv/bin/uvicorn main:app --reload
actions:
- id: "Notifier"
name: "Notifier"
trigger: "schedule"
default_interval: "0/15 * * * *"
- id: "UserStats"
name: "UserStats"
trigger: "schedule"
default_interval: "0/59 * * * *"
- id: "BannerStats"
name: "BannerStats"
trigger: "schedule"
default_interval: "0/30 * * * *"
- id: "CoursesStats"
name: "CoursesStats"
trigger: "schedule"
default_interval: "0/30 * * * *"
- name: Notifier-Main
src: ./Notifier-Main/
engine: python3.9
public: true
path: notifier
run: uvicorn main:app
dev: .venv/bin/uvicorn main:app --reload
presets:
env:
- name: TOKEN
description: Telegram Token
default: ""
- name: Web
src: ./Website/
engine: python3.9
primary: true
public: true
presets:
env:
- name: TOKEN
description: Telegram Token
default: ""
- name: SECRET_KEY
description: Flask key for cookies
default: ""