1
0
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:
Tommy 2021-11-01 23:44:39 -04:00 committed by GitHub
parent 0fb51b38ef
commit b2a9a8ffaf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;