Skip to content

Commit

Permalink
gw-nic: Correct syntax highlight for nginx
Browse files Browse the repository at this point in the history
  • Loading branch information
iBug committed Sep 19, 2024
1 parent ab0daa5 commit 10bdc9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/services/gateway-nic.md
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ PartOf=netfilter-persistent.service

To mitigate the issue of the complaints from ISPs and the regulation authorities caused by the gateways in USTCnet responding to the requests for `ustclug.org`, which is a unregistered domain in China MIIT, we make nginx listen on an alternative port 81/444 for HTTP and HTTPS respectively, to respond to requests for `lug.ustc.edu.cn` only, and rejecting the handshake for any other domain.

``` title="/etc/nginx/sites-available/default"
```nginx title="/etc/nginx/sites-available/default"
server {
listen 81 default_server;
listen [::]:81 default_server;
Expand Down

0 comments on commit 10bdc9b

Please sign in to comment.