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