Hotfix public proxy

This commit is contained in:
Ichitux
2026-04-07 19:40:27 +02:00
parent ac0b39d451
commit 1073a61672
3 changed files with 5 additions and 5 deletions

2
.env
View File

@@ -10,7 +10,7 @@ DISCORD_CHANNEL_ID=600347996080701506
PORT=8000
# Base URL for RSS feed links (optional)
BASE_URL=http://localhost:8000
BASE_URL=rss.hacecalor.net
# Fetch interval in milliseconds (optional, defaults to 5 minutes)
FETCH_INTERVAL_MS=300000

Binary file not shown.

View File

@@ -22,7 +22,7 @@ if (!fs.existsSync(dataDir)) {
await initDatabase();
const app = express();
const PORT = process.env.PORT || 3000;
const PORT = process.env.PORT || 8000;
// Middleware
app.use(express.json());
@@ -76,9 +76,9 @@ async function start() {
await fetchChannelMessages(process.env.DISCORD_CHANNEL_ID, 100);
// Start HTTP server
app.listen(PORT, () => {
console.log(`RSS server running on http://localhost:${PORT}`);
console.log(`RSS feed available at: http://localhost:${PORT}/rss/${process.env.DISCORD_CHANNEL_ID}`);
app.listen(PORT, '0.0.0.0', () => {
console.log(`RSS server running on http://0.0.0.0:${PORT}`);
console.log(`RSS feed available at: http://<your-server-ip>:${PORT}/rss/`);
});
// Periodic fetch (every 5 minutes)