Add DNS/Flask servers, logging, and stunnel config
Introduces a DNS server (dnsserver.py) that redirects Nintendo domains, a Flask server (server.py) for serving Gen4/Gen5 Pokémon event files and logging unknown requests, and supporting batch scripts for starting/stopping services. Adds stunnel configuration and certificates for SSL proxying, as well as initial requirements and log handling. Removes obsolete server.log and restructures event file serving and logging for better maintainability.
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
@echo off
|
||||
setlocal
|
||||
|
||||
REM Paths
|
||||
set BASE_DIR=C:\Users\hocke\Documents\GitHub\Pokemon-DNS-DS-Server
|
||||
set STUNNEL_EXE="C:\Program Files (x86)\stunnel\bin\stunnel.exe"
|
||||
set STUNNEL_CONF=%BASE_DIR%\wii-wfc-dev\stunnel\stunnel.conf
|
||||
|
||||
echo === Starting DNS Server ===
|
||||
start "DNS Server" cmd /k "cd /d %BASE_DIR% && python dnsserver.py"
|
||||
|
||||
echo === Starting Flask Server ===
|
||||
start "Flask Server" cmd /k "cd /d %BASE_DIR% && python server.py"
|
||||
|
||||
echo === Starting stunnel ===
|
||||
start "stunnel" %STUNNEL_EXE% %STUNNEL_CONF%
|
||||
|
||||
echo All services launched!
|
||||
pause
|
||||
Reference in New Issue
Block a user