diff --git a/conf/nginx/site-enabled_aether-nextcloud.conf b/conf/nginx/site-enabled_aether-nextcloud.conf index 1e520a2..a1a899a 100644 --- a/conf/nginx/site-enabled_aether-nextcloud.conf +++ b/conf/nginx/site-enabled_aether-nextcloud.conf @@ -25,6 +25,8 @@ server { server { listen 443 ssl; listen [::]:443 ssl; + http2 on; + server_name nextcloud.oneskyit.com; access_log /logs/nginx/access_oneskyit_nextcloud.log; diff --git a/conf/nginx/site-enabled_aether-phpmyadmin.conf b/conf/nginx/site-enabled_aether-phpmyadmin.conf index 2c6f45c..884949b 100644 --- a/conf/nginx/site-enabled_aether-phpmyadmin.conf +++ b/conf/nginx/site-enabled_aether-phpmyadmin.conf @@ -25,6 +25,7 @@ server { server { listen 443 ssl; listen [::]:443 ssl; + http2 on; # server_name ${DOCKER_PHPMYADMIN_SERVER_NAME}; server_name phpmyadmin-oneskyit.localhost phpmyadmin.oneskyit.com dev-phpmyadmin.oneskyit.com test-phpmyadmin.oneskyit.com; diff --git a/conf/nginx/site-enabled_aether_api_v5_fastapi_gunicorn.conf b/conf/nginx/site-enabled_aether_api_v5_fastapi_gunicorn.conf index ee73087..f8b51e0 100644 --- a/conf/nginx/site-enabled_aether_api_v5_fastapi_gunicorn.conf +++ b/conf/nginx/site-enabled_aether_api_v5_fastapi_gunicorn.conf @@ -66,6 +66,7 @@ server { server { listen 443 ssl; listen [::]:443 ssl; + http2 on; server_name ${DOCKER_AE_API_V5_SERVER_NAME} v5-fastapi.localhost api-v5.localhost; # server_name diff --git a/conf/nginx/site-enabled_aether_fastapi_gunicorn.conf b/conf/nginx/site-enabled_aether_fastapi_gunicorn.conf index b2bbcb8..3c0fb72 100644 --- a/conf/nginx/site-enabled_aether_fastapi_gunicorn.conf +++ b/conf/nginx/site-enabled_aether_fastapi_gunicorn.conf @@ -71,6 +71,7 @@ server { server { listen 443 ssl; listen [::]:443 ssl; + http2 on; server_name ${DOCKER_AE_API_SERVER_NAME} diff --git a/conf/nginx/site-enabled_aether_flask_gunicorn.conf b/conf/nginx/site-enabled_aether_flask_gunicorn.conf index b0d0b7c..6581334 100644 --- a/conf/nginx/site-enabled_aether_flask_gunicorn.conf +++ b/conf/nginx/site-enabled_aether_flask_gunicorn.conf @@ -77,6 +77,7 @@ server { server { listen 443 ssl; listen [::]:443 ssl; + http2 on; # The Docker nginx envsubst with templates does not work for multiple server names. # server_name diff --git a/conf/nginx/site-enabled_oneskyit.conf b/conf/nginx/site-enabled_oneskyit.conf index 5f28634..54cbbb4 100644 --- a/conf/nginx/site-enabled_oneskyit.conf +++ b/conf/nginx/site-enabled_oneskyit.conf @@ -46,6 +46,7 @@ server { server { listen 443 ssl; listen [::]:443 ssl; + http2 on; # server_name docker.oneskyit.com ${DOCKER_OSIT_SERVER_NAME}; server_name docker.oneskyit.com dev-docker.oneskyit.com test-docker.oneskyit.com prod-docker.oneskyit.com ${DOCKER_OSIT_SERVER_NAME}; diff --git a/conf/nginx/site.conf b/conf/nginx/site.conf index a0bb4c0..0c81ea6 100644 --- a/conf/nginx/site.conf +++ b/conf/nginx/site.conf @@ -7,22 +7,22 @@ server { # server { # listen 80; # server_name _; -# +# # access_log /logs/nginx/access_docker.log; # error_log /logs/nginx/error_docker.log; -# +# # root /srv/html_php; -# +# # index index.html index.htm index.php; -# +# # # location / { # # # root /usr/share/nginx/html; # # index index.html index.htm; # # } -# +# # location ~ \.php$ { # index index.html index.htm index.php; -# +# # try_files $uri =404; # fastcgi_split_path_info ^(.+\.php)(/.+)$; # fastcgi_pass php7:9000; @@ -31,22 +31,22 @@ server { # fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; # fastcgi_param PATH_INFO $fastcgi_path_info; # } -# +# # #error_page 404 /404.html; -# +# # # redirect server error pages to the static page /50x.html # # # # error_page 500 502 503 504 /50x.html; # # location = /50x.html { # # root /usr/share/nginx/html; # # } -# +# # # proxy the PHP scripts to Apache listening on 127.0.0.1:80 # # # #location ~ \.php$ { # # proxy_pass http://127.0.0.1; # #} -# +# # # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 # # # #location ~ \.php$ { @@ -56,7 +56,7 @@ server { # # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name; # # include fastcgi_params; # #} -# +# # # deny access to .htaccess files, if Apache's document root # # concurs with nginx's one # # @@ -68,7 +68,8 @@ server { server { listen 443 ssl; listen [::]:443 ssl; - + http2 on; + server_name _; access_log /logs/nginx/access_docker.log; @@ -82,28 +83,28 @@ server { ssl_certificate /etc/certs/fullchain.pem; ssl_certificate_key /etc/certs/privkey.pem; ssl_dhparam /etc/certs/ssl-dhparams.pem; - + location / { return 404; } # root /srv/html_php; -# +# # index index.php index.html; -# +# # # These two locations remove .html and .php from filenames. # location / { # try_files $uri $uri/ $uri.html $uri.php$is_args$query_string; # } -# +# # location ~ \.php$ { # root /srv/html_php; -# +# # # index index.html index.htm index.php; -# +# # try_files $uri =404; # # try_files $uri $document_root$fastcgi_script_name =404; -# +# # fastcgi_split_path_info ^(.+\.php)(/.+)$; # fastcgi_pass php7:9000; # fastcgi_index index.php;