37 lines
901 B
Lua
37 lines
901 B
Lua
|
|
-- furt-lua/config/server.lua
|
||
|
|
-- Server configuration for Furt Lua HTTP-Server
|
||
|
|
|
||
|
|
return {
|
||
|
|
-- HTTP Server settings
|
||
|
|
host = "127.0.0.1",
|
||
|
|
port = 8080,
|
||
|
|
|
||
|
|
-- Timeouts (seconds)
|
||
|
|
client_timeout = 10,
|
||
|
|
|
||
|
|
-- Logging
|
||
|
|
log_level = "info",
|
||
|
|
log_requests = true,
|
||
|
|
|
||
|
|
-- Security (for future use)
|
||
|
|
api_keys = {
|
||
|
|
["hugo-frontend-key"] = {
|
||
|
|
name = "Hugo Frontend",
|
||
|
|
permissions = {"mail:send"},
|
||
|
|
allowed_ips = {"127.0.0.1", "10.0.0.0/8"}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
|
||
|
|
-- Mail configuration (for SMTP integration)
|
||
|
|
mail = {
|
||
|
|
smtp_server = "mail.dragons-at-work.de",
|
||
|
|
smtp_port = 465,
|
||
|
|
use_ssl = true,
|
||
|
|
username = os.getenv("FURT_MAIL_USERNAME"),
|
||
|
|
password = os.getenv("FURT_MAIL_PASSWORD"),
|
||
|
|
from_address = "noreply@dragons-at-work.de",
|
||
|
|
to_address = "michael@dragons-at-work.de"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|