File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 25
25
### Server
26
26
``` sh
27
27
./cdn [arguments]
28
+ ./cdn -ssl -server-port=8001 &
29
+ ./cdn -server-port=8000 &
28
30
```
29
31
### Nginx
30
32
``` nginx
@@ -39,15 +41,15 @@ http {
39
41
40
42
server {
41
43
listen 80;
42
- server_name cdn.uring.com ;
44
+ server_name _ ;
43
45
location / {
44
46
proxy_pass http://http_stream;
45
47
}
46
48
}
47
49
48
50
server {
49
51
listen 443;
50
- server_name cdn.uring.com ;
52
+ server_name _ ;
51
53
location / {
52
54
proxy_pass http://https_stream;
53
55
}
56
58
```
57
59
### Client
58
60
``` sh
59
- wget https://localhost:8000/upload.wikimedia.org/wikipedia/commons/3/35/Tux.svg
61
+ wget https://localhost/upload.wikimedia.org/wikipedia/commons/3/35/Tux.svg
62
+ wget http://localhost/upload.wikimedia.org/wikipedia/commons/3/35/Tux.svg
60
63
```
61
64
### Arguments
62
65
- __ -ssl__ Enable https support
You can’t perform that action at this time.
0 commit comments