fix nginx
This commit is contained in:
+1
-1
@@ -6346,7 +6346,7 @@ DNS-over-HTTPS with IP:
|
||||
{
|
||||
$conf = $this->getPacConf();
|
||||
$template = file_get_contents('/config/nginx_default.conf');
|
||||
$template = preg_replace('~server_name ip~', "server_name {$this->ip}", $template);
|
||||
// $template = preg_replace('~server_name ip~', "server_name {$this->ip}", $template);
|
||||
$template = preg_replace('~server_name domain~', "server_name " . ($conf['domain'] ? " *.{$conf['domain']} {$conf['domain']}" : '_'), $template);
|
||||
if ($conf['domain'] && $conf['letsencrypt']) {
|
||||
$template = preg_replace('/#~([^\n]+)?/', "#~{$conf['letsencrypt']}", $template);
|
||||
|
||||
@@ -36,9 +36,8 @@ http {
|
||||
}
|
||||
|
||||
server {
|
||||
server_name ip;
|
||||
listen 10.10.0.2:443 ssl http2 proxy_protocol;
|
||||
listen 10.10.1.2:443 ssl http2;
|
||||
listen 10.10.0.2:443 ssl http2 proxy_protocol default_server;
|
||||
listen 10.10.1.2:443 ssl http2 default_server;
|
||||
ssl_certificate /certs/self_public;
|
||||
ssl_certificate_key /certs/self_private;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user