Skip to content

Commit

Permalink
Partial fix Url in prod
Browse files Browse the repository at this point in the history
  • Loading branch information
kbagot committed Dec 14, 2024
1 parent 15ce6fe commit eeb1127
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
11 changes: 10 additions & 1 deletion compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ services:
POSTGRES_PASSWORD: ${PGPASSWORD}
volumes:
- pgdata:/var/lib/postgresql/data
networks:
- app_network
ports:
- "5432:5432"

Expand Down Expand Up @@ -37,6 +39,8 @@ services:
- OPENSUBTITLES_USERNAME=${OPENSUBTITLES_USERNAME}
- OPENSUBTITLES_PASSWORD=${OPENSUBTITLES_PASSWORD}
- NUXT_APP_BASE_URL=${NUXT_APP_BASE_URL}
networks:
- app_network
ports:
- "3000:3000"
depends_on:
Expand All @@ -54,7 +58,8 @@ services:
volumes:
- ./Docker_Config/jackett:/config
- ./Docker_Config/blackhole:/downloads

networks:
- app_network
ports:
- 9117:9117
restart: unless-stopped
Expand All @@ -72,5 +77,9 @@ services:
- 8191:8191
restart: unless-stopped

networks:
app_network:
driver: bridge

volumes:
pgdata:
6 changes: 3 additions & 3 deletions server/api/movies/[id]/index.get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,19 +63,19 @@ export default defineEventHandler(async (event) => {

//Fetch Numbers of comments
const resComments = await $fetch(
`/api/movies/${id}/comments`,
`http://localhost:3000/api/movies/${id}/comments`,
)
movie_infos.num_comments = resComments.length

Check failure on line 68 in server/api/movies/[id]/index.get.ts

View workflow job for this annotation

GitHub Actions / Typecheck and Build Nuxt App

'resComments' is of type 'unknown'.

//Fetch available subtitles
const resSubtitles = await $fetch(
`/api/movies/${id}/subtitles`
`http://localhost:3000/api/movies/${id}/subtitles`
)
movie_infos.available_subtitles = resSubtitles

//Fetch torrents from title
const resTorrents = await fetch(
"http://localhost:9117/api/v2.0/indexers/all/results/torznab/api" +
"http://jackett:9117/api/v2.0/indexers/all/results/torznab/api" +
`?apikey=${config.jackettApiKey}` +
`&t=movie&q=${encodeURI(movie_infos?.title)}` +
`&year=${movie_infos.release_date.slice(0, 4)}` +
Expand Down

0 comments on commit eeb1127

Please sign in to comment.