Hotfix public proxy
This commit is contained in:
2
.env
2
.env
@@ -10,7 +10,7 @@ DISCORD_CHANNEL_ID=600347996080701506
|
|||||||
PORT=8000
|
PORT=8000
|
||||||
|
|
||||||
# Base URL for RSS feed links (optional)
|
# 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 in milliseconds (optional, defaults to 5 minutes)
|
||||||
FETCH_INTERVAL_MS=300000
|
FETCH_INTERVAL_MS=300000
|
||||||
|
|||||||
BIN
data/messages.db
BIN
data/messages.db
Binary file not shown.
@@ -22,7 +22,7 @@ if (!fs.existsSync(dataDir)) {
|
|||||||
await initDatabase();
|
await initDatabase();
|
||||||
|
|
||||||
const app = express();
|
const app = express();
|
||||||
const PORT = process.env.PORT || 3000;
|
const PORT = process.env.PORT || 8000;
|
||||||
|
|
||||||
// Middleware
|
// Middleware
|
||||||
app.use(express.json());
|
app.use(express.json());
|
||||||
@@ -76,9 +76,9 @@ async function start() {
|
|||||||
await fetchChannelMessages(process.env.DISCORD_CHANNEL_ID, 100);
|
await fetchChannelMessages(process.env.DISCORD_CHANNEL_ID, 100);
|
||||||
|
|
||||||
// Start HTTP server
|
// Start HTTP server
|
||||||
app.listen(PORT, () => {
|
app.listen(PORT, '0.0.0.0', () => {
|
||||||
console.log(`RSS server running on http://localhost:${PORT}`);
|
console.log(`RSS server running on http://0.0.0.0:${PORT}`);
|
||||||
console.log(`RSS feed available at: http://localhost:${PORT}/rss/${process.env.DISCORD_CHANNEL_ID}`);
|
console.log(`RSS feed available at: http://<your-server-ip>:${PORT}/rss/`);
|
||||||
});
|
});
|
||||||
|
|
||||||
// Periodic fetch (every 5 minutes)
|
// Periodic fetch (every 5 minutes)
|
||||||
|
|||||||
Reference in New Issue
Block a user