mirror of
https://github.com/TheCommsChannel/TC2-BBS-mesh.git
synced 2025-04-20 23:26:41 -04:00
Updated Docker image
This commit is contained in:
parent
73fd2d67f4
commit
65c325a068
@ -7,7 +7,8 @@ RUN apt-get update && \
|
||||
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Clone the repository
|
||||
RUN git clone https://github.com/TheCommsChannel/TC2-BBS-mesh.git
|
||||
# RUN git clone https://github.com/TheCommsChannel/TC2-BBS-mesh.git
|
||||
COPY ./ /home/mesh/bbs/
|
||||
|
||||
####
|
||||
|
||||
@ -20,17 +21,17 @@ RUN mkdir -p /home/mesh/bbs
|
||||
WORKDIR /home/mesh/bbs
|
||||
|
||||
# Install Python dependencies
|
||||
COPY --from=build /TC2-BBS-mesh/requirements.txt ./
|
||||
COPY requirements.txt ./
|
||||
RUN pip install --no-cache-dir --break-system-packages -r requirements.txt
|
||||
|
||||
# Copy over app code
|
||||
COPY --from=build /TC2-BBS-mesh/*.py ./
|
||||
COPY *.py ./
|
||||
|
||||
# Define config volume
|
||||
VOLUME /home/mesh/bbs/config
|
||||
WORKDIR /home/mesh/bbs/config
|
||||
COPY --from=build /TC2-BBS-mesh/example_config.ini ./config.ini
|
||||
COPY --from=build /TC2-BBS-mesh/fortunes.txt ./
|
||||
COPY example_config.ini ./config.ini
|
||||
COPY fortunes.txt ./
|
||||
|
||||
# Define the command to run
|
||||
ENTRYPOINT [ "python3", "/home/mesh/bbs/server.py" ]
|
||||
|
102
example_config.ini
Normal file
102
example_config.ini
Normal file
@ -0,0 +1,102 @@
|
||||
###############################
|
||||
#### Select Interface type ####
|
||||
###############################
|
||||
# [type = serial] for USB connected devices
|
||||
#If there are multiple serial devices connected, be sure to use the "port" option and specify a port
|
||||
# Linux Example:
|
||||
# port = /dev/ttyUSB0
|
||||
#
|
||||
# Windows Example:
|
||||
# port = COM3
|
||||
# [type = tcp] for network connected devices (ESP32 devices only - this does not work for WisBlock)
|
||||
# If using tcp, remove the # from the beginning and replace 192.168.x.x with the IP address of your device
|
||||
# Example:
|
||||
# [interface]
|
||||
# type = tcp
|
||||
# hostname = 192.168.1.100
|
||||
|
||||
[interface]
|
||||
type = serial
|
||||
# port = /dev/ttyACM0
|
||||
# hostname = 192.168.x.x
|
||||
|
||||
|
||||
############################
|
||||
#### BBS NODE SYNC LIST ####
|
||||
############################
|
||||
# Provide a list of other nodes running TC²-BBS to sync mail messages and bulletins with
|
||||
# Enter in a list of other BBS Nodes by their nodeID separated by commas (no spaces)
|
||||
# Example:
|
||||
# [sync]
|
||||
# bbs_nodes = !17d7e4b7,!18e9f5a3,!1a2b3c4d
|
||||
|
||||
# [sync]
|
||||
# bbs_nodes = !17d7e4b7
|
||||
|
||||
|
||||
############################
|
||||
#### Allowed Node IDs ####
|
||||
############################
|
||||
# Provide a list of node IDs that are allowed to post to the urgent board.
|
||||
# If this section is commented out, anyone can post to the urgent board.
|
||||
# Example:
|
||||
# [allow_list]
|
||||
# allowed_nodes = 12345678,87654321
|
||||
#
|
||||
# [allow_list]
|
||||
# allowed_nodes = !17d7e4b7
|
||||
|
||||
|
||||
####################
|
||||
#### Menu Items ####
|
||||
####################
|
||||
# Remove any menu items you don't plan on using with your BBS below
|
||||
#
|
||||
[menu]
|
||||
# Default Main Menu options for reference
|
||||
# [Q]uick Commands
|
||||
# [B]BS
|
||||
# [U]tilities
|
||||
# E[X]IT
|
||||
#
|
||||
# Remove any menu items from the list below that you want to exclude from the main menu
|
||||
main_menu_items = Q, B, U, X
|
||||
|
||||
# Default BBS Menu options for reference
|
||||
# [M]ail
|
||||
# [B]ulletins
|
||||
# [C]hannel Dir
|
||||
# [J]S8CALL
|
||||
# E[X]IT
|
||||
#
|
||||
# Remove any menu items from the list below that you want to exclude from the BBS menu
|
||||
bbs_menu_items = M, B, C, J, X
|
||||
|
||||
# Default Utilities Menu option for reference
|
||||
# [S]tats
|
||||
# [F]ortune
|
||||
# [W]all of Shame
|
||||
# E[X]IT
|
||||
#
|
||||
# Remove any menu items from the list below that you want to exclude from the utilities menu
|
||||
utilities_menu_items = S, F, W, X
|
||||
|
||||
|
||||
##########################
|
||||
#### JS8Call Settings ####
|
||||
##########################
|
||||
# If you would like messages from JS8Call to go into the BBS, uncomment and enter in info below:
|
||||
# host = the IP address for your system running JS8Call
|
||||
# port = TCP API port for JS8CALL - Default is 2442
|
||||
# db_file = this can be left as the default "js8call.db" unless you need to change for some reason
|
||||
# js8groups = the JS8Call groups you're interested in receiving into the BBS
|
||||
# store_messages = "true" will send messages that arent part of a group into the BBS (can be noisy). "false" will ignore these
|
||||
# js8urgent = the JS8Call groups you consider to be urgent - anything sent to these will have a notice sent to the
|
||||
# group chat (similar to how the urgent bulletin board works
|
||||
# [js8call]
|
||||
# host = 192.168.1.100
|
||||
# port = 2442
|
||||
# db_file = js8call.db
|
||||
# js8groups = @GRP1,@GRP2,@GRP3
|
||||
# store_messages = True
|
||||
# js8urgent = @URGNT
|
@ -1 +0,0 @@
|
||||
title="Test Game 9000"
|
Loading…
x
Reference in New Issue
Block a user