This repository was archived by the owner on Apr 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathcloudplayer.conf
More file actions
57 lines (45 loc) · 1.41 KB
/
cloudplayer.conf
File metadata and controls
57 lines (45 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
server_tokens off;
upstream api {
server 127.0.0.1:8040;
}
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name api.cloud-player.io;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name api.cloud-player.io;
keepalive_timeout 70;
ssl_certificate /etc/nginx/ssl/api.cloud-player.io.crt;
ssl_certificate_key /etc/nginx/ssl/api.cloud-player.io.key;
ssl_session_cache shared:SSL:50m;
ssl_session_timeout 1d;
ssl_session_tickets off;
ssl_dhparam /etc/nginx/ssl/dhparam.pem;
ssl_prefer_server_ciphers on;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
access_log /var/log/nginx/api.access.log;
error_log /var/log/nginx/api.error.log error;
location / {
proxy_pass http://api;
proxy_pass_header Server;
proxy_redirect off;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Scheme $scheme;
}
location /websocket {
proxy_pass http://api/websocket;
proxy_pass_header Server;
proxy_redirect off;
proxy_http_version 1.1;
proxy_set_header Connection "upgrade";
proxy_set_header Host $http_host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Scheme $scheme;
}
}