Update nginx config
This commit is contained in:
parent
4bd5f729c5
commit
7a6681f06c
@ -18,7 +18,7 @@ http {
|
|||||||
sendfile on;
|
sendfile on;
|
||||||
tcp_nopush on;
|
tcp_nopush on;
|
||||||
tcp_nodelay on;
|
tcp_nodelay on;
|
||||||
sendfile_max_chunk 512k;
|
sendfile_max_chunk 4m;
|
||||||
types_hash_max_size 2048;
|
types_hash_max_size 2048;
|
||||||
server_tokens off;
|
server_tokens off;
|
||||||
keepalive_timeout 120s;
|
keepalive_timeout 120s;
|
||||||
@ -27,16 +27,17 @@ http {
|
|||||||
proxy_store off;
|
proxy_store off;
|
||||||
proxy_cache off;
|
proxy_cache off;
|
||||||
proxy_max_temp_file_size 0;
|
proxy_max_temp_file_size 0;
|
||||||
proxy_buffers 16 16k;
|
proxy_buffers 64 4k;
|
||||||
proxy_buffer_size 16k;
|
proxy_buffer_size 16k;
|
||||||
proxy_busy_buffers_size 64k;
|
proxy_busy_buffers_size 24k;
|
||||||
fastcgi_buffering on;
|
fastcgi_buffering on;
|
||||||
fastcgi_request_buffering off;
|
fastcgi_request_buffering off;
|
||||||
fastcgi_buffers 16 16K;
|
fastcgi_buffers 64 4K;
|
||||||
fastcgi_busy_buffers_size 64k;
|
fastcgi_busy_buffers_size 24k;
|
||||||
fastcgi_buffer_size 16k;
|
fastcgi_buffer_size 16k;
|
||||||
fastcgi_max_temp_file_size 0;
|
fastcgi_max_temp_file_size 0;
|
||||||
client_body_buffer_size 4M;
|
client_header_buffer_size 4k;
|
||||||
|
large_client_header_buffers 8 8k;
|
||||||
|
|
||||||
# server_names_hash_bucket_size 64;
|
# server_names_hash_bucket_size 64;
|
||||||
# server_name_in_redirect off;
|
# server_name_in_redirect off;
|
||||||
|
@ -117,7 +117,7 @@ setupNextcloud() {
|
|||||||
echo "Setting up Nginx"
|
echo "Setting up Nginx"
|
||||||
apt-get install -y nginx-full certbot python3-certbot-nginx
|
apt-get install -y nginx-full certbot python3-certbot-nginx
|
||||||
failCheck "while installing Nginx, please check output above for more info"
|
failCheck "while installing Nginx, please check output above for more info"
|
||||||
echo "H4sIAAAAAAAAA5VW34+jNhB+z19h6d56Jexm97an5q29SpW61VXaqq/IMQP4YmzXMxD2qv7vHQNJICF7KorC+PvG88OesWkQgjgcDkkuSW5XBxf2EDIfnAJEQCEbctuV17lIQ2NTW2rbrXm4XWmrTJODSIHUgKe1yxsDmICVOwN5+t1aOVtsVytowRKKf1ZifBoEAd4Zsz1Bo2ueYUGRdhbFD08fz3zdGNKZVAo8CVew2X9Xq4rIs9mT0rt3Z1H8JFEr8QJE2pY41TnJCDYvtAHh7NkTKZ9Z5xusFuAcjHyd4UcbWS27TFWN3YsP95v9ZOKrB8wqiVWvgvoriM3d48epidBy7uT2wGn3yR2pPYCXRreQka7BNSTuN3d45nmrutds1xQFBE5zFtnABfi7AaSpztTBoITkAiwRSqpqkYipENQ+63Pvk7pbDgvF/RP/9svsMHWRxpOFQenpcaJUSCRV6hupH9lvJD83Mgb62xL/P2JZyOio8PaiKaO5T7Kdy+eLE5/H37eTMj9WjJX1sbR2jdoDHYPbLutm2vKS5Dpwiw0rcdJb6meuuHVfvWdzORSSOzGLsJDeG61k7NbUKQJKkALIenujI19enr/Rj2ji4UNOOYPiz+eX9n74Xx/fm/H9sGV7n4LzPm4qG24fvhcBih/FH58/f3r+5cIk9Is5LITSvoqbHetlOc5nV5a92bdijUcRYmbcRU1BCC70cNrKkLIwLmdPrHk8cVt+1X5WuBHIeN7rNaocF47hs9SIhwuq5n01YEuqxObD0wUZ20lDLqDzvPG5sC4ZupqFoe990K2kCGSGKzXjg1wXulfNgGQZr4HqwmpfF7MKkOTq911tZuAX2UpUQfOhPYPR2Rlg8vdXWC2tLrh7r5mAeOWptfm6BHetHIkak8JZcrsvsfKn7EFiPQO6XjMhKi7gA+wSRpLbYXUV1eYqsDiOJlPnub1j3+halpDuaj9K2Jb9rGHUJZpvQUHQUdpv1MnjiCEOgjdSj3qtkiEfRU436JoLbfC/7lgaKRpNdEksJmc5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QC0Kqghoqkx7sm4BH7NMHYxj1wqY/eUxo5T5UbEJM5GEDPMJSR1Ko5dJAhtNmrleqlqvFcT8qfWM88JHbBiBgKnIa9Mmg8IpjQf+tDJ7uHR0aeDj/sf3kyU3tryX6z9isrJhYhjdKHkbzbvH5UksgoVaGZFwc29knNuLDW9al7FFsY0RFJIovJAkAtvanMFKNi2d/o/vMbGKdcgfBT+t85XNZqa4tVdaHP9DtYbXzaKDc3gdetf3H7I+CMMAAA=" | base64 -d | gunzip > /etc/nginx/sites-available/nextcloud
|
||||||
ln -s /etc/nginx/sites-available/nextcloud /etc/nginx/sites-enabled/
|
ln -s /etc/nginx/sites-available/nextcloud /etc/nginx/sites-enabled/
|
||||||
rm /etc/nginx/sites-enabled/default
|
rm /etc/nginx/sites-enabled/default
|
||||||
|
Loading…
Reference in New Issue
Block a user