-
Notifications
You must be signed in to change notification settings - Fork 0
/
metadata.yml
36 lines (34 loc) · 1.46 KB
/
metadata.yml
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
# Human-readable name of the service
name: The lost bottle of Rum
# Name of the service for usage in paths, usernames etc.: Should only consist of lowercase alphanumeric
# characters, must be identical to the (URL) project name of the GitLab repo
slug: thelostbottle
authors:
- Michael Baer <[email protected]>
install:
debian_packages:
- build-essential
- python3
- python3-dev
- python3-pip
- libjpeg-dev
- zlib1g-dev
# These will be run on the Vulnbox after extracting "dist_root" (from the build) to the root file system,
# installing Debian packages and creating the service user
postinst_commands:
- install -o thelostbottle -g thelostbottle -m 700 -d "${DATA_DIR}/maps"
- systemctl enable thelostbottle.socket
- systemctl enable thelostbottlesetup.service
- pip3 install arcade
- echo '*/5 * * * * thelostbottle find /srv/thelostbottle/maps/ -cmin +30 -name "map_*.json" -delete' >> /etc/crontab
# Whether to insert a firewall rule not allowing the service user to establish outgoing network connections
# This should generally be enabled, except for services which need outgoing connections
prevent_outgoing_connections: True
checker:
script_path: checker/checker.py
# Upper bound of how long the Checker Script takes to run (for a single team)
# Used for scheduling checks within a tick, executions taking longer *may* get terminated
max_duration: 60
debian_packages:
- python3-requests
pip_packages: []