-
Notifications
You must be signed in to change notification settings - Fork 669
/
Copy pathnginx.conf
51 lines (43 loc) · 1.5 KB
/
nginx.conf
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
server {
listen 80;
server_name spotify-github-profile.kittinanx.com;
charset utf-8;
access_log /var/log/nginx/spotify_access.log;
error_log /var/log/nginx/spotify_error.log;
client_max_body_size 2M;
proxy_read_timeout 60;
proxy_connect_timeout 60;
proxy_send_timeout 60;
location /api/login {
proxy_pass http://localhost:5001;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-Proto $scheme;
}
location /api/callback {
proxy_pass http://localhost:5002;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-Proto $scheme;
}
location /api/view {
proxy_pass http://localhost:5003;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-Proto $scheme;
}
location /api/view.svg {
proxy_pass http://localhost:5003;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-Proto $scheme;
}
# Redirect / to /api/login
location = / {
return 301 /api/login;
}
}