Update some things. Default URL changed for VPS.

This commit is contained in:
2025-12-18 16:19:43 +00:00
parent 74f6dfa66d
commit cf44635c72
10 changed files with 635 additions and 613 deletions

9
.dockerignore Normal file
View File

@@ -0,0 +1,9 @@
LICENSE
README.md
node_modules
dist
.env.example
.git
.gitignore
docker/**
scripts/**

View File

@@ -13,8 +13,8 @@ RUN pnpm install
COPY . . COPY . .
# Build the project # Build the project
RUN pnpm run prebuild #RUN pnpm run prebuild
RUN pnpm run build RUN pnpm build
# Stage 2: Serve the app using the same version of Node # Stage 2: Serve the app using the same version of Node
FROM node:18-alpine FROM node:18-alpine

View File

@@ -5,7 +5,7 @@ networks:
services: services:
bang: bang:
build: build:
context: ../ context: ..
dockerfile: docker/Dockerfile dockerfile: docker/Dockerfile
image: gib/bang:latest image: gib/bang:latest
container_name: bang container_name: bang

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# Function to check if we're in the correct directory # Function to check if we're in the correct directory
check_directory() { check_directory() {

View File

@@ -0,0 +1,15 @@
[Unit]
Description=Podman Compose: Bang
After=network-online.target
Wants=network-online.target
[Service]
Type=oneshot
WorkingDirectory=/home/gib/Server/Search/Bang/docker
ExecStart=/usr/bin/podman compose up -d
ExecStop=/usr/bin/podman compose down
RemainAfterExit=yes
TimeoutStopSec=60
[Install]
WantedBy=multi-user.target

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# Function to check if we're in the correct directory # Function to check if we're in the correct directory
check_directory() { check_directory() {
@@ -45,7 +45,6 @@ if ! check_directory; then
fi fi
git pull git pull
pnpm build
cd docker || exit 1 cd docker || exit 1
sudo podman compose down sudo podman compose down
sudo podman compose up -d sudo podman compose up -d

View File

@@ -6,15 +6,14 @@
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
"generate-opensearch": "ts-node scripts/generateOpenSearch.ts", "generate-opensearch": "ts-node scripts/generateOpenSearch.ts",
"prebuild": "pnpm generate-opensearch",
"build": "tsc && vite build", "build": "tsc && vite build",
"preview": "vite preview" "preview": "vite preview"
}, },
"devDependencies": { "devDependencies": {
"@types/node": "^22.15.17", "@types/node": "^22.19.3",
"ts-node": "^10.9.2", "ts-node": "^10.9.2",
"typescript": "~5.7.3", "typescript": "~5.7.3",
"vite": "^6.3.5" "vite": "^6.4.1"
}, },
"dependencies": { "dependencies": {
"vite-plugin-pwa": "^0.21.2" "vite-plugin-pwa": "^0.21.2"

1196
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@@ -3,8 +3,8 @@
<ShortName>Bang!</ShortName> <ShortName>Bang!</ShortName>
<Description>A better default search engine with bangs</Description> <Description>A better default search engine with bangs</Description>
<InputEncoding>UTF-8</InputEncoding> <InputEncoding>UTF-8</InputEncoding>
<Image width="16" height="16" type="image/svg+xml">https://bang.gbrown.org/bang.svg</Image> <Image width="16" height="16" type="image/svg+xml">https://bang.gibbyb.com/bang.svg</Image>
<Url type="text/html" method="get" template="https://bang.gbrown.org?q={searchTerms}"/> <Url type="text/html" method="get" template="https://bang.gibbyb.com?q={searchTerms}"/>
<Url type="application/opensearchdescription+xml" rel="self" template="https://bang.gbrown.org/opensearch.xml"/> <Url type="application/opensearchdescription+xml" rel="self" template="https://bang.gibbyb.com/opensearch.xml"/>
<moz:SearchForm xmlns:moz="http://www.mozilla.org/2006/browser/search/">https://bang.gbrown.org</moz:SearchForm> <moz:SearchForm xmlns:moz="http://www.mozilla.org/2006/browser/search/">https://bang.gibbyb.com</moz:SearchForm>
</OpenSearchDescription> </OpenSearchDescription>

View File

@@ -7,7 +7,7 @@ const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename); const __dirname = path.dirname(__filename);
// Get the Bang URL from environment or use a default for local development // Get the Bang URL from environment or use a default for local development
const bangUrl = process.env.VITE_BANG_URL || 'https://bang.gbrown.org'; const bangUrl = process.env.VITE_BANG_URL || 'https://bang.gibbyb.com';
// Create the OpenSearch XML content // Create the OpenSearch XML content
const openSearchXml = `<?xml version="1.0" encoding="UTF-8"?> const openSearchXml = `<?xml version="1.0" encoding="UTF-8"?>