mirror of
https://github.com/tommytran732/Pterodactyl-Script
synced 2024-11-09 05:01:33 -05:00
Update install.sh
This commit is contained in:
parent
0fb51b38ef
commit
b2a9a8ffaf
@ -485,11 +485,13 @@ nginx_config() {
|
|||||||
echo '
|
echo '
|
||||||
server {
|
server {
|
||||||
listen 80 default_server;
|
listen 80 default_server;
|
||||||
|
listen [::]:80 default_server;
|
||||||
server_name '"$FQDN"';
|
server_name '"$FQDN"';
|
||||||
return 301 https://$server_name$request_uri;
|
return 301 https://$server_name$request_uri;
|
||||||
}
|
}
|
||||||
server {
|
server {
|
||||||
listen 443 ssl http2 default_server;
|
listen 443 ssl http2 default_server;
|
||||||
|
listen [::]:443 ssl http2 default_server;
|
||||||
server_name '"$FQDN"';
|
server_name '"$FQDN"';
|
||||||
root /var/www/pterodactyl/public;
|
root /var/www/pterodactyl/public;
|
||||||
index index.php;
|
index index.php;
|
||||||
@ -548,11 +550,13 @@ nginx_config_redhat(){
|
|||||||
echo '
|
echo '
|
||||||
server {
|
server {
|
||||||
listen 80 default_server;
|
listen 80 default_server;
|
||||||
|
listen [::]:80 default_server;
|
||||||
server_name '"$FQDN"';
|
server_name '"$FQDN"';
|
||||||
return 301 https://$server_name$request_uri;
|
return 301 https://$server_name$request_uri;
|
||||||
}
|
}
|
||||||
server {
|
server {
|
||||||
listen 443 ssl http2 default_server;
|
listen 443 ssl http2 default_server;
|
||||||
|
listen [::]:443 ssl http2 default_server;
|
||||||
server_name '"$FQDN"';
|
server_name '"$FQDN"';
|
||||||
root /var/www/pterodactyl/public;
|
root /var/www/pterodactyl/public;
|
||||||
index index.php;
|
index index.php;
|
||||||
|
Loading…
Reference in New Issue
Block a user