jean-cloud-services/services/mux.radiodemo.oma-radio.fr/nginx_server.conf

53 lines
1.3 KiB
Plaintext
Raw Normal View History

2023-10-16 08:47:35 +00:00
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server{
2024-01-02 16:50:14 +00:00
listen $SWEBSOCKET_PORT ssl;
2023-10-31 15:42:06 +00:00
ssl_certificate $JC_CERT/fullchain.pem;
ssl_certificate_key $JC_CERT/privkey.pem;
2023-10-16 08:47:35 +00:00
location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
2023-10-31 15:42:06 +00:00
proxy_pass http://$NET$WEBSERVER:9000;
2023-10-16 08:47:35 +00:00
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 120s;
}
}
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name $JC_SERVICE;
2023-10-31 15:42:06 +00:00
ssl_certificate $JC_CERT/fullchain.pem;
ssl_certificate_key $JC_CERT/privkey.pem;
2023-10-16 08:47:35 +00:00
location / {
client_max_body_size 0;
2024-01-02 16:50:14 +00:00
proxy_pass http://$ENDPOINT/;
2023-10-16 08:47:35 +00:00
proxy_set_header Host 'soundbase.radiodemo.oma-radio.fr';
2024-01-02 16:50:14 +00:00
proxy_redirect http://soundbase.radiodemo.oma-radio.fr https://$JC_SERVICE;
2023-10-16 08:47:35 +00:00
}
location /direct.ogg {
client_max_body_size 0;
proxy_pass http://$NET$ICECAST:8000/direct.ogg;
}
location /direct.mp3 {
client_max_body_size 0;
proxy_pass http://$NET$ICECAST:8000/direct.mp3;
}
2024-01-02 16:50:14 +00:00
location /logs/ {
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME $DOCKER_DIR/server.sh;
fastcgi_pass unix:/var/run/fcgiwrap.socket;
}
2023-10-16 08:47:35 +00:00
}