1
Fork 0
This commit is contained in:
Korbs 2024-09-03 02:30:12 -04:00
parent 6c24e3a5e0
commit f608a91730
31 changed files with 2766 additions and 0 deletions

102
web/.env.sample Normal file
View file

@ -0,0 +1,102 @@
# Server Information
SERVER_ADMIN="Company LLC"
SERVER_LOCATION="France"
SERVER_PROTOCOL="https"
SERVER_DOMAIN="https://example.org"
# Default Instances and Options
## Set the instances you want to use.
## Can be overriden by the user in their preferences.
### Supabase Server
SUPABASE_URL="http://supa.example.com"
SUPABASE_ANON_KEY="anon_key"
### Invidious
DEFAULT_MEDIA_PROXY="https://yt.sudovanilla.org" # Invidious (YouTube)
DEFAULT_MEDIA_DATA_PROXY="https://yt.sudovanilla.org" # Invidious (YouTube)
### SafeTwitch
DEFAULT_STREAM_PROXY="https://twitch-backend.sudovanilla.org" # SafeTwitch (Twitch)
DEFAULT_STREAM_DATA_PROXY="https://twitch-backend.sudovanilla.org" # SafeTwitch (Twitch)
### Image Proxy
DEFAULT_IMAGE_PROXY="https://ipx.sudovanilla.org"
### Options
DEFAULT_PLAYER="Zorn"
# Source Code Information
## If you've modified the source code, please publish
## your changes and list the repo here.
MODIFIED="false"
CUSTOM_SOURCE_CODE=""
# UI Customization
META_COLOR="#000"
COLOR=""
THEME=""
THEME_TOGGLE_ENABLED=""
THEME_TOGGLE_STYLE=""
FOOTER_VERSION="true"
REVERT_LAYOUT=""
SIDEBAR_CATEGORIES="true"
SIDEBAR_DISCOVER="true"
# Platform Support
PLATFORM_YOUTUBE="true"
PLATFORM_TWITCH="true"
# Frontend Alternatives
## YouTube
ENABLE_FRONTENDALTERNATIVE_YOUTUBE="false"
FRONTENDALTERNATIVE_YOUTUBE_INSTANCE="https://instance.example.org"
## Twitch
ENABLE_FRONTENDALTERNATIVE_TWITCH="false"
FRONTENDALTERNATIVE_TWITCH_INSTANCE="https://instance.example.org"
## X
ENABLE_FRONTENDALTERNATIVE_X="false"
FRONTENDALTERNATIVE_X_INSTANCE="https://instance.example.org"
## Reddit
ENABLE_FRONTENDALTERNATIVE_REDDIT="false"
FRONTENDALTERNATIVE_REDDIT_INSTANCE="https://instance.example.org"
## Medium
ENABLE_FRONTENDALTERNATIVE_MEDIUM="false"
FRONTENDALTERNATIVE_MEDIUM_INSTANCE="https://instance.example.org"
## Quora
ENABLE_FRONTENDALTERNATIVE_QUORA="false"
FRONTENDALTERNATIVE_QUORA_INSTANCE="https://instance.example.org"
## Stack Overflow
ENABLE_FRONTENDALTERNATIVE_STACKOVERFLOW="false"
FRONTENDALTERNATIVE_STACKOVERFLOW_INSTANCE="https://instance.example.org"
## Wikipedia
ENABLE_FRONTENDALTERNATIVE_WIKIPEDIA="false"
FRONTENDALTERNATIVE_WIKIPEDIA_INSTANCE="https://instance.example.org"
## Imgur
ENABLE_FRONTENDALTERNATIVE_IMGUR="false"
FRONTENDALTERNATIVE_IMGUR_INSTANCE="https://instance.example.org"
# Analytics
ANALYTICS="false"
## If your domain uses Cloudflare, set to "true"
CLOUDFLARE="false"
MATOMO_ID=""
MATOMO_SRC=""
PLAUSIBLE_DOMAIN=""
PLAUSIBLE_SRC=""
UMAMI_ID=""
UMAMI_SRC=""
AMPLITUDE_APIKEY=""
METRICAL_APP=""
FATHOM_SITE=""
FATHOM_SRC=""
MINIAML_ID=""
SWETRIX_SRC=""
SWETRIX_API=""
SWETRIX_PROJECT_ID=""
SIMPLEANALYTICS_DOMAIN=""

46
web/astro.js Normal file
View file

@ -0,0 +1,46 @@
import { defineConfig } from "astro/config"
import bun from '@nurodev/astro-bun'
import mdx from '@astrojs/mdx'
import vue from '@astrojs/vue'
// References: https://docs.astro.build/en/reference/configuration-reference/
export default defineConfig({
// Project Structure
cacheDir: './.minpluto/generated/astro/cache/',
outDir: './.minpluto/generated/astro/dist/',
publicDir: './web/src/public',
root: './web',
srcDir: './web/src',
// Integrations
integrations: [mdx(), vue()],
// Server
server: {
port: 1930,
host: true
},
// Use Server-Side Rendering
output: 'server',
adapter: bun(),
// Experimental
experimental: {
clientPrerender: true,
directRenderScript: true,
serverIslands: true
},
prefetch: {
prefetchAll: true,
defaultStrategy: "viewport"
},
// Security and Other Options
devToolbar: {
enabled: false
},
security: {
checkOrigin: true
},
vite: {
server: {
hmr: false // Auto Reload
}
}
})