Skip to content

Commit

Permalink
Merge pull request #840 from celestemods-com/create-gamebanana-mirror
Browse files Browse the repository at this point in the history
Create GameBanana Mirror
  • Loading branch information
otobot1 authored Jul 31, 2024
2 parents bcbf3a4 + 91323dc commit dc45e2b
Show file tree
Hide file tree
Showing 35 changed files with 5,583 additions and 2,563 deletions.
35 changes: 34 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,37 @@ DISCORD_CLIENT_SECRET=""

# Enable/disable next/bundle-analyzer
# https://nextjs.org/docs/pages/building-your-application/optimizing/bundle-analyzer
ANALYZE_BUNDLE="false"
ANALYZE_BUNDLE="false"


# Absolute path to the JSON file that contains the everest update info.
EVEREST_UPDATE_DATABASE_PATH=""
# Absolute path to the JSON file that contains the mod search database.
MOD_SEARCH_DATABASE_JSON_PATH=""


# Comma separated list of IP addresses for authorized requests to the GameBanana Mirror Update Webhook.
GAMEBANANA_MIRROR_UPDATE_WEBHOOK_IPS=""

# Comma separated list of base64 encoded public keys for authorized requests to the GameBanana Mirror Update Webhook.
GAMEBANANA_MIRROR_UPDATE_WEBHOOK_PUBLIC_KEYS=""

# Base64 encoded private key for use in development mode
GAMEBANANA_MIRROR_UPDATE_WEBHOOK_PRIVATE_KEY=""


# Base64 encoded private key for signing requests to the GameBanana Mirror storage API.
GAMEBANANA_MIRROR_STORAGE_API_PRIVATE_KEY=""

# URL for sending requests to the Cloudflare worker managing the R2 buckets for the GameBanana mirror.
GAMEBANANA_MIRROR_CLOUDFLARE_R2_WORKER_URL="https://example.com"

# Cloudflare R2 bucket names for the GameBanana mirror.
GAMEBANANA_MIRROR_CLOUDFLARE_R2_MODS_BUCKET_NAME=""
GAMEBANANA_MIRROR_CLOUDFLARE_R2_SCREENSHOTS_BUCKET_NAME=""
GAMEBANANA_MIRROR_CLOUDFLARE_R2_RICH_PRESENCE_ICONS_BUCKET_NAME=""

# Credentials with object read access to the Cloudflare R2 buckets for the GameBanana mirror.
GAMEBANANA_MIRROR_CLOUDFLARE_R2_ACCESS_KEY_ID=""
GAMEBANANA_MIRROR_CLOUDFLARE_R2_SECRET_ACCESS_KEY=""
GAMEBANANA_MIRROR_CLOUDFLARE_ACCOUNT_ID=""
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ next-env.d.ts

# production
/build
/cache

# logs
/logs
Expand Down
4 changes: 3 additions & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const withBundleAnalyzer = bundleAnalyzer({
/** @type {import("next").NextConfig} */
const config = {
reactStrictMode: true,
images: { //TODO!: figure out how to fix crash on next.config.mjs change
images: {
remotePatterns: [
{
protocol: "https",
Expand All @@ -42,6 +42,8 @@ const config = {
},
experimental: {
largePageDataBytes: 3 * 1024 * 1024, // 3 MB
serverComponentsExternalPackages: ['pino'], // Context: https://github.com/vercel/next.js/issues/54289#issuecomment-1686401300
},
eslint: { ignoreDuringBuilds: true },
};
export default withBundleAnalyzer(config);
Loading

0 comments on commit dc45e2b

Please sign in to comment.