SASK

SASK PROXY

Preferences

Theme

Change interface colors

Privacy Cloak

Tabs disguise & blank history

SASK PROXY v3.0 Premium Core

インデックスし // index.js import createBareServer from '@tomphttp/bare-server-node'; import express from 'express'; import { createServer } from 'node:http'; import { join } from 'node:path'; import { fileURLToPath } from 'node:url'; const __dirname = fileURLToPath(new URL('.', import.meta.url)); const bare = createBareServer('/bare/'); const app = express(); // 静的ファイルの配信 (publicフォルダ) app.use(express.static(join(__dirname, 'public'))); app.use((req, res) => { res.status(404).send('Not Found'); }); const server = createServer(); server.on('request', (req, res) => { if (bare.shouldRoute(req)) { bare.route(req, res); } else { app(req, res); } }); server.on('upgrade', (req, socket, head) => { if (bare.shouldRoute(req)) { bare.route(req, socket, head); } else { socket.end(); } }); const PORT = process.env.PORT || 3000; server.listen(PORT, () => { console.log(`SASK Proxy running at: http://localhost:${PORT}`); });