-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathps-net-tests
63 lines (49 loc) · 1.39 KB
/
ps-net-tests
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
58
59
60
61
62
63
# PlayStation Network Test Servers
# Does not support TLS
# Domains:
# (get|post|ena).net.playstation.net
server {
charset utf-8;
chunked_transfer_encoding on;
include error.conf;
error_page 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 421 422 423 424 426 428 429 431 451 500 501 502 503 504 505 506 507 508 510 511 @error_html;
listen 0.0.0.0:80;
listen 0.0.0.0:443 ssl http2;
#{{IPV6}} listen [::]:80;
#{{IPV6}} listen [::]:443 ssl http2;
server_name "~^(get|post|ena)\.net\.playstation\.net$";
ssl_certificate /etc/nginx/certs/snakeoil.crt;
ssl_certificate_key /etc/nginx/certs/private/snakeoil.key;
# 2M Get Network Test
location = /networktest/get_2m {
gzip off;
more_set_headers "Content-Type: text/plain";
charset off;
alias /var/www/ps-net-tests/get_2m;
}
# 6M Get Network Test
location = /networktest/get_6m {
gzip off;
more_set_headers "Content-Type: text/plain";
charset off;
alias /var/www/ps-net-tests/get_6m;
}
# PS5 Ping Test
location = /netstart/icst {
gzip off;
more_set_headers "Content-Type: text/plain";
charset off;
return 200 "Success";
}
# 128 Post Network Test
location ~* "^/networktest/post_128m?$" {
gzip off;
more_set_headers "Content-Type: text/plain";
charset off;
return 200;
}
location / {
return 444;
}
include general.conf;
}