23 lines
524 B
Plaintext
Executable File
23 lines
524 B
Plaintext
Executable File
server
|
|
{
|
|
listen {$PORT};
|
|
listen [::]:{$PORT};
|
|
|
|
server_name {$SERVER_NAME};
|
|
index index.php index.html index.htm default.php default.htm default.html;
|
|
|
|
#SSL-START
|
|
#error_page 404/404.html;
|
|
#SSL-END
|
|
|
|
#PROXY-START
|
|
location ^~ / {
|
|
proxy_pass http://0.0.0.0:{$PANAL_PORT}/;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection 'upgrade';
|
|
}
|
|
#PROXY-END
|
|
|
|
error_log {$LOGPATH}/{$SERVER_NAME}.error.log;
|
|
} |