Skip to content

Commit 5f56277

Browse files
authored
Merge pull request #10 from rubycats-com/jellyfin-http
jellyfin use http
2 parents e57ebd8 + eb0e5f1 commit 5f56277

3 files changed

Lines changed: 23 additions & 8 deletions

File tree

‎apps/common.yml‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,20 @@ x-healthcheck: &healthcheck
2828
retries: 5
2929
x-labels: &labels
3030
- "traefik.enable=true"
31+
- "traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https"
32+
- "traefik.http.middlewares.redirect-to-https.redirectscheme.permanent=false"
33+
- "traefik.http.routers.${APP_NAME}-http.rule=Host(`${APP_NAME}.${DAPPS_DOMAIN}`)"
34+
- "traefik.http.routers.${APP_NAME}-http.entrypoints=http"
35+
- "traefik.http.routers.${APP_NAME}-http.middlewares=redirect-to-https"
3136
- "traefik.http.routers.${APP_NAME}.rule=Host(`${APP_NAME}.${DAPPS_DOMAIN}`)"
3237
- "traefik.http.routers.${APP_NAME}.entrypoints=https"
3338
- "traefik.http.routers.${APP_NAME}.tls.certresolver=${DAPPS_CERTIFICATE_RESOLVER}"
3439
- "traefik.http.services.${APP_NAME}.loadbalancer.server.port=${APP_PORT}"
40+
x-labels-http: &labels-http
41+
- "traefik.enable=true"
42+
- "traefik.http.routers.${APP_NAME}.rule=Host(`${APP_NAME}.${DAPPS_DOMAIN}`)"
43+
- "traefik.http.routers.${APP_NAME}.entrypoints=http"
44+
- "traefik.http.services.${APP_NAME}.loadbalancer.server.port=${APP_PORT}"
3545
x-labels-api: &labels-api
3646
- traefik.enable=true
3747
- traefik.http.routers.${APP_NAME}-api.rule=Host(`${APP_NAME}.${DAPPS_DOMAIN}`) && PathPrefix(`/api`)
@@ -57,6 +67,17 @@ services:
5767
- internal
5868
- traefik
5969
logging: *logging
70+
main-http:
71+
env_file: *env-file
72+
restart: *restart
73+
expose:
74+
- ${APP_PORT}
75+
labels: *labels-http
76+
healthcheck: *healthcheck
77+
networks:
78+
- internal
79+
- traefik
80+
logging: *logging
6081
api:
6182
env_file: *env-file
6283
restart: *restart

‎apps/jellyfin/docker-compose.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ include:
22
- ../networks.yml
33
x-environment: &environment
44
TZ: ${DAPPS_TIMEZONE}
5-
JELLYFIN_PublishedServerUrl: https://${APP_NAME}.${DAPPS_DOMAIN}
5+
JELLYFIN_PublishedServerUrl: http://${APP_NAME}.${DAPPS_DOMAIN}
66
services:
77
jellyfin:
88
image: jellyfin/jellyfin
99
extends:
1010
file: ../common.yml
11-
service: main
11+
service: main-http
1212
environment: *environment
1313
volumes:
1414
- ../../apps-data/${APP_NAME}/config:/config

‎apps/traefik/config/traefik.template.yml‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,6 @@ ping:
1313
entryPoints:
1414
http:
1515
address: ":80"
16-
http:
17-
redirections:
18-
entryPoint:
19-
to: https
20-
scheme: https
21-
permanent: false
2216
https:
2317
address: ":443"
2418
forwardedHeaders:

0 commit comments

Comments
 (0)