Compare commits

...

2 Commits

Author SHA1 Message Date
be18d2162d Update nginx config 2024-03-05 22:19:53 +01:00
7a6681f06c Update nginx config 2024-03-05 22:17:10 +01:00
3 changed files with 17 additions and 10 deletions

View File

@ -24,6 +24,12 @@ server {
add_header X-XSS-Protection "1; mode=block" always;
fastcgi_hide_header X-Powered-By;
include mime.types;
types {
text/javascript js mjs;
application/wasm wasm;
}
index index.php index.html /index.php$request_uri;
location = / {

View File

@ -18,7 +18,7 @@ http {
sendfile on;
tcp_nopush on;
tcp_nodelay on;
sendfile_max_chunk 512k;
sendfile_max_chunk 4m;
types_hash_max_size 2048;
server_tokens off;
keepalive_timeout 120s;
@ -27,16 +27,17 @@ http {
proxy_store off;
proxy_cache off;
proxy_max_temp_file_size 0;
proxy_buffers 16 16k;
proxy_buffers 64 4k;
proxy_buffer_size 16k;
proxy_busy_buffers_size 64k;
proxy_busy_buffers_size 24k;
fastcgi_buffering on;
fastcgi_request_buffering off;
fastcgi_buffers 16 16K;
fastcgi_busy_buffers_size 64k;
fastcgi_buffers 64 4K;
fastcgi_busy_buffers_size 24k;
fastcgi_buffer_size 16k;
fastcgi_max_temp_file_size 0;
client_body_buffer_size 4M;
fastcgi_max_temp_file_size 0;
client_header_buffer_size 4k;
large_client_header_buffers 8 8k;
# server_names_hash_bucket_size 64;
# server_name_in_redirect off;

View File

@ -117,8 +117,8 @@ setupNextcloud() {
echo "Setting up Nginx"
apt-get install -y nginx-full certbot python3-certbot-nginx
failCheck "while installing Nginx, please check output above for more info"
echo "H4sIAAAAAAAAA5VW34+jNhB+z19h6d56Jexm97an5q29SpW61VXaqq/IMQP4YmzXMxD2qv7vHQNJICF7KorC+PvG88OesWkQgjgcDkkuSW5XBxf2EDIfnAJEQCEbctuV17lIQ2NTW2rbrXm4XWmrTJODSIHUgKe1yxsDmICVOwN5+t1aOVtsVytowRKKf1ZifBoEAd4Zsz1Bo2ueYUGRdhbFD08fz3zdGNKZVAo8CVew2X9Xq4rIs9mT0rt3Z1H8J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ip > /etc/nginx/sites-available/nextcloud
ln -s /etc/nginx/sites-available/nextcloud /etc/nginx/sites-enabled/
rm /etc/nginx/sites-enabled/default
service nginx restart
@ -245,4 +245,4 @@ echo -e ""
echo -e " nextcloud user:resetpassword admin"
echo -e ""
echo -e "${BLUE}----------------------------------------------------------------------------${NC}"
exit
exit