Basculer le menu
Changer de menu des préférences
Basculer le menu personnel
Non connecté(e)
Votre adresse IP sera visible au public si vous faites des modifications.

Moonlight web stream

De Le Wiki de Lug
Version datée du 22 mars 2026 à 16:13 par Admin (discussion | contributions) (Page créée avec « [https://github.com/MrCreativ3001/moonlight-web-stream Source] = Installation version Docker = [https://github.com/MrCreativ3001/moonlight-web-stream/blob/master/docker/README.md Source] # mkdir /opt/moonlightwebstream # cd /opt/moonlightwebstream # vi docker-compose.yml services: moonlight-web: image: mrcreativ3001/moonlight-web-stream:latest container_name: moonlight-web restart: unless-stopped ports: - "<font color = green>8... »)
(diff) ← Version précédente | Version actuelle (diff) | Version suivante → (diff)

Source

Installation version Docker

Source

# mkdir /opt/moonlightwebstream
# cd /opt/moonlightwebstream
# vi docker-compose.yml
 services:
  moonlight-web:
    image: mrcreativ3001/moonlight-web-stream:latest
    container_name: moonlight-web
    restart: unless-stopped
    ports:
      - "8080:8080"
      - "40000-40100:40000-40100/udp"
    volumes:
      - /opt/moonlightwebstream/server:/moonlight-web/server
# docker compose up -d

Configuration

# vi /opt/moonlightwebstream/server/config.json

Auhtentification

Au minimum renseigner les champs suivant :

        ...
        "username": "un_utilisateur",
        "credential": "un_mot_de_passe"
        ...

vhost

server {
    listen 443 ssl http2;
    server_name moonlight.tondomaine.com;

    ssl_certificate /etc/letsencrypt/live/moonlight.tondomaine.com/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/moonlight.tondomaine.com/privkey.pem;

    location /api/host/stream {
        proxy_pass http://192.168.123:8080/api/host/stream;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_read_timeout 86400;
    }

    location / {
        proxy_pass http://192.168.1.123:8080/;
        proxy_http_version 1.1;
        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto https;
        proxy_read_timeout 86400;
    }
}