Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/mirsella/hypertube into main
Browse files Browse the repository at this point in the history
  • Loading branch information
kbagot committed Dec 14, 2024
2 parents f5e3d6b + 82ddffb commit 86fcb8d
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 9 deletions.
5 changes: 2 additions & 3 deletions compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,13 @@ services:

nuxt:
container_name: nuxt
stop_grace_period: 0s
build:
context: .
dockerfile: nuxt.dockerfile
env_file: .env
restart: unless-stopped
environment:
PGPASSWORD: "${PGPASSWORD}"
# PGPASSWORD: "${PGPASSWORD}" // the .env is loaded anyway
PGHOST: postgres
NUXT_APP_BASE_URL: ${NUXT_APP_BASE_URL}
ports:
Expand All @@ -35,7 +34,7 @@ services:
environment:
- PUID=1000
- PGID=1000
- TZ=Etc/UTC
- TZ=Etc/Paris
- AUTO_UPDATE=true #optional
- RUN_OPTS= #optional
volumes:
Expand Down
25 changes: 21 additions & 4 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import fs from "fs";

function get_from_env(field: string): string {
const env = process.env[field];
if (!env && process.env.NODE_ENV === "development") {
Expand All @@ -24,8 +22,27 @@ export default defineNuxtConfig({
jackettApiKey: get_from_env("JACKETT_API_KEY"),
},
nitro: {
// we need https://github.com/unjs/nitro/pull/2570
experimental: { tasks: true, openAPI: true },
experimental: {
tasks: true,
openAPI: true,
},
openAPI: {
production: "prerender",
ui: {
scalar: {
servers: [
{
url: "http://localhost:3000",
description: "dev server server",
},
{
url: "https://mirsella.mooo.com/hypertube",
description: "Production server",
},
],
},
},
},
scheduledTasks: {
"0 * * * *": ["remove_old_movies"],
},
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@
"@types/fluent-ffmpeg": "^2.1.27",
"@types/pg": "^8.11.10",
"@types/webtorrent": "^0.109.10",
"@vitejs/plugin-vue": "^5.1.4",
"daisyui": "^4.12.14",
"drizzle-kit": "^0.28.0",
"vue-tsc": "2.0.29",
"typescript": "5.6.2",
"vite": "^5.4.10",
"@vitejs/plugin-vue": "^5.1.4"
"vue-tsc": "2.0.29"
},
"trustedDependencies": [
"@parcel/watcher",
Expand Down

0 comments on commit 86fcb8d

Please sign in to comment.