Skip to content

Commit da11ba5

Browse files
authored
Update README.md
1 parent c1c471d commit da11ba5

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ make
2525
### Server
2626
```sh
2727
./cdn [arguments]
28+
./cdn -ssl -server-port=8001 &
29+
./cdn -server-port=8000 &
2830
```
2931
### Nginx
3032
```nginx
@@ -39,15 +41,15 @@ http {
3941
4042
server {
4143
listen 80;
42-
server_name cdn.uring.com;
44+
server_name _;
4345
location / {
4446
proxy_pass http://http_stream;
4547
}
4648
}
4749
4850
server {
4951
listen 443;
50-
server_name cdn.uring.com;
52+
server_name _;
5153
location / {
5254
proxy_pass http://https_stream;
5355
}
@@ -56,7 +58,8 @@ http {
5658
```
5759
### Client
5860
```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
6063
```
6164
### Arguments
6265
- __-ssl__ Enable https support

0 commit comments

Comments
 (0)