@@ -455,12 +455,12 @@ chown -R nginx.nginx /var/log/nginx/
455
455
chown -R nginx.nginx /var/cache/nginx/
456
456
chown -R nginx.nginx /usr/lib/nginx/
457
457
458
- git clone --recursive https://github.com/google/ngx_brotli.git /usr/lib/nginx/git-modules/ngx_brotli --depth 1
458
+ git clone --recursive https://github.com/google/ngx_brotli.git /usr/lib/nginx/git-modules/ngx_brotli
459
459
cd /usr/lib/nginx/git-modules/ngx_brotli
460
460
# Try to make it stable
461
461
git reset --hard e505dce68acc190cc5a1e780a3b0275e39f160ca
462
462
463
- git clone --recursive https://github.com/leev/ngx_http_geoip2_module.git /usr/lib/nginx/git-modules/ngx_geoip2 --depth 1
463
+ git clone --recursive https://github.com/leev/ngx_http_geoip2_module.git /usr/lib/nginx/git-modules/ngx_geoip2
464
464
cd /usr/lib/nginx/git-modules/ngx_geoip2
465
465
# Try to make it stable
466
466
git reset --hard 1cabd8a1f68ea3998f94e9f3504431970f848fbf
@@ -532,90 +532,6 @@ make install &>/dev/null
532
532
533
533
cd $LARAVEL_WORKDIR
534
534
535
- cat << 'EOF ' -> $NGINX_DEFAULT_CONF
536
- # /etc/nginx/nginx.conf
537
-
538
- user nginx;
539
-
540
- # Set number of worker processes automatically based on number of CPU cores.
541
- worker_processes auto;
542
-
543
- # Enables the use of JIT for regular expressions to speed-up their processing.
544
- pcre_jit on;
545
-
546
- # Includes files with directives to load dynamic modules.
547
- include /etc/nginx/modules/*.conf;
548
-
549
- events {
550
- # The maximum number of simultaneous connections that can be opened by
551
- # a worker process.
552
- worker_connections 1024;
553
- }
554
-
555
- http {
556
- # Includes mapping of file name extensions to MIME types of responses
557
- # and defines the default type.
558
- include /etc/nginx/mime.types;
559
- default_type application/octet-stream;
560
-
561
- # Name servers used to resolve names of upstream servers into addresses.
562
- # It's also needed when using tcpsocket and udpsocket in Lua modules.
563
- #resolver 208.67.222.222 208.67.220.220;
564
-
565
- # Don't tell nginx version to clients.
566
- server_tokens off;
567
-
568
- # Specifies the maximum accepted body size of a client request, as
569
- # indicated by the request header Content-Length. If the stated content
570
- # length is greater than this size, then the client receives the HTTP
571
- # error code 413. Set to 0 to disable.
572
- client_max_body_size 1m;
573
-
574
- # Timeout for keep-alive connections. Server will close connections after
575
- # this time.
576
- keepalive_timeout 65;
577
-
578
- # Sendfile copies data between one FD and other from within the kernel,
579
- # which is more efficient than read() + write().
580
- sendfile on;
581
-
582
- # Don't buffer data-sends (disable Nagle algorithm).
583
- # Good for sending frequent small bursts of data in real time.
584
- tcp_nodelay on;
585
-
586
- # Causes nginx to attempt to send its HTTP response head in one packet,
587
- # instead of using partial frames.
588
- #tcp_nopush on;
589
-
590
- # Path of the file with Diffie-Hellman parameters for EDH ciphers.
591
- #ssl_dhparam /etc/ssl/nginx/dh2048.pem;
592
-
593
- # Specifies that our cipher suits should be preferred over client ciphers.
594
- ssl_prefer_server_ciphers on;
595
-
596
- # Enables a shared SSL cache with size that can hold around 8000 sessions.
597
- ssl_session_cache shared:SSL:2m;
598
-
599
- # Enable gzipping of responses.
600
- gzip on;
601
-
602
- # Set the Vary HTTP header as defined in the RFC 2616.
603
- gzip_vary on;
604
-
605
- # Specifies the main log format.
606
- log_format main '$remote_addr - $remote_user [$time_local] "$request" '
607
- '$status $body_bytes_sent "$http_referer" '
608
- '"$http_user_agent" "$http_x_forwarded_for"';
609
-
610
- # Sets the path, format, and configuration for a buffered log write.
611
- access_log /var/log/nginx/access.log main;
612
-
613
- # Includes virtual hosts configs.
614
- include /etc/nginx/conf.d/*.conf;
615
- }
616
- EOF
617
-
618
-
619
535
# Create nginx default configuration file
620
536
cat << 'EOF ' -> $NGINX_DEFAULT_VIRTUAL_HOST
621
537
# NGINX_DEFAULT_VIRTUAL_HOST
910
826
# http://www.doxygen.nl/download.html
911
827
apk add flex-dev bison python3
912
828
cd /root/
913
- git clone https://github.com/doxygen/doxygen.git --depth 1
829
+ git clone https://github.com/doxygen/doxygen.git
914
830
cd doxygen
915
831
# Try to make it stable
916
832
git reset --hard 77d5346f4866429b240b96a146381e770e5e0788
0 commit comments