Compare commits

..

3 Commits

Author SHA1 Message Date
f518f86543 start: orb-22 2025-06-17 00:22:45 -07:00
302113baee move cache control to be the first middleware 2025-06-17 00:22:39 -07:00
b48245e870 more styling: add meta info 2025-06-17 00:12:52 -07:00
4 changed files with 15 additions and 14 deletions

View File

@@ -1,8 +1,8 @@
{ {
"server_ip": "0.0.0.0", "server_ip": "0.0.0.0",
"server_port": 8080, "server_port": 8080,
"video_path": "videos/Orb-21.mp4", "video_path": "videos/Orb-22.mp4",
"subtitles_path": "videos/Orb-21.vtt", "subtitles_path": "videos/Orb-22.vtt",
"bg_path": "videos/bg-20.png", "bg_path": "videos/chisato_peak.jpg",
"password": "password" "password": "password"
} }

View File

@@ -80,6 +80,14 @@ wss.on('connection', function connection(ws) {
//// Web server //// //// Web server ////
// app settings // app settings
// disable cache globally because it may break things between server restarts,
// since the paths aren't unique
app.use(function (req, res, next) {
res.setHeader("Cache-Control", "no-cache, no-store, must-revalidate");
next();
});
app.use('/', express.static(__dirname)); app.use('/', express.static(__dirname));
app.use(bodyParser.urlencoded({ app.use(bodyParser.urlencoded({
extended: true extended: true
@@ -92,13 +100,6 @@ app.use(session({
logged: false logged: false
})); }));
// disable cache globally because it may break things between server restarts,
// since the paths aren't unique
app.use(function (req, res, next) {
res.setHeader("Cache-Control", "no-cache, no-store, must-revalidate");
next();
});
// home page // home page
app.get("/", function (req, res) { app.get("/", function (req, res) {
@@ -128,7 +129,7 @@ app.post("/login", function (req, res) {
// video streaming // video streaming
app.get("/video", function (req, res) { app.get("/video-3", function (req, res) {
// Ensure there is a range given for the video // Ensure there is a range given for the video
const range = req.headers.range; const range = req.headers.range;
if (!range) { if (!range) {

View File

@@ -21,7 +21,7 @@ body[data-background] {
background-size: cover; background-size: cover;
background-position: center; background-position: center;
background-repeat: no-repeat; background-repeat: no-repeat;
background-blend-mode: darken; background-blend-mode: multiply;
} }
.container { .container {

View File

@@ -9,7 +9,7 @@
<link rel="icon" href="/icon.png" type="image/png"> <link rel="icon" href="/icon.png" type="image/png">
<!-- Open Graph Meta Tags --> <!-- Open Graph Meta Tags -->
<meta property="og:title" content="The Orboverse"> <meta property="og:title" content="The Orboverse">
<meta property="og:description" content="Join the funny. 🔫."> <meta property="og:description" content="Join the heliocentrism ☀️ gang. 🔫.">
<meta property="og:image" content="/stars.jpg"> <meta property="og:image" content="/stars.jpg">
<meta property="og:url" content="https://anistream.cazzzer.com"> <meta property="og:url" content="https://anistream.cazzzer.com">
<meta property="og:type" content="website"> <meta property="og:type" content="website">
@@ -20,7 +20,7 @@
<h1>Welcome to the Orboverse</h1> <h1>Welcome to the Orboverse</h1>
</header> </header>
<video id="videoPlayer" muted controls controlsList="nodownload noplaybackrate"> <video id="videoPlayer" muted controls controlsList="nodownload noplaybackrate">
<source src="/video" type="video/mp4" /> <source src="/video-3" type="video/mp4" />
<!-- subtitle track--> <!-- subtitle track-->
<track kind="subtitles" src="/subtitles" srclang="en" label="English" default> <track kind="subtitles" src="/subtitles" srclang="en" label="English" default>
<p>Your browser does not support the video tag.</p> <p>Your browser does not support the video tag.</p>