Skip to content

Commit 5e2a5d2

Browse files
committed
- CSS: Device must be at least 360px wide.
- Badges: Remove issues. - Remove duplicated nginx config. - Git: Avoid using "--depth 1" on "git clone" because the "git reset --hard <COMMIT>" command might fail.
1 parent 47d5ca9 commit 5e2a5d2

File tree

3 files changed

+6
-93
lines changed

3 files changed

+6
-93
lines changed

docker/entrypoint.sh

Lines changed: 3 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -455,12 +455,12 @@ chown -R nginx.nginx /var/log/nginx/
455455
chown -R nginx.nginx /var/cache/nginx/
456456
chown -R nginx.nginx /usr/lib/nginx/
457457

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
459459
cd /usr/lib/nginx/git-modules/ngx_brotli
460460
# Try to make it stable
461461
git reset --hard e505dce68acc190cc5a1e780a3b0275e39f160ca
462462

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
464464
cd /usr/lib/nginx/git-modules/ngx_geoip2
465465
# Try to make it stable
466466
git reset --hard 1cabd8a1f68ea3998f94e9f3504431970f848fbf
@@ -532,90 +532,6 @@ make install &>/dev/null
532532

533533
cd $LARAVEL_WORKDIR
534534

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-
619535
# Create nginx default configuration file
620536
cat <<'EOF' -> $NGINX_DEFAULT_VIRTUAL_HOST
621537
# NGINX_DEFAULT_VIRTUAL_HOST
@@ -910,7 +826,7 @@ then
910826
# http://www.doxygen.nl/download.html
911827
apk add flex-dev bison python3
912828
cd /root/
913-
git clone https://github.com/doxygen/doxygen.git --depth 1
829+
git clone https://github.com/doxygen/doxygen.git
914830
cd doxygen
915831
# Try to make it stable
916832
git reset --hard 77d5346f4866429b240b96a146381e770e5e0788

readme.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ Laravel 6 survey
33

44
[![Build status][circle-ci-badge]][circle-ci]
55
[![Coverage Status][coveralls-badge]][coveralls]
6-
[![Issue status][gh-issues-badge]][gh-issues]
76
[![StyleCI status][styleci-badge]][style-ci]
87
[![Docs][doxygen-badge]][doxygen-url]
98
[![Made in][brazil-badge]][brazil-country]
@@ -146,14 +145,12 @@ License
146145
147146
[doxygen-badge]: https://img.shields.io/badge/docs-Doxygen-brightgreen.svg
148147
[doxygen-url]: https://dptole.ngrok.io/laravel/doxygen/
149-
[coveralls-badge]: https://img.shields.io/coveralls/github/dptole/laravel-survey/master
148+
[coveralls-badge]: https://coveralls.io/repos/github/dptole/laravel-survey/badge.svg?branch=master
150149
[coveralls]: https://coveralls.io/github/dptole/laravel-survey
151150
[brazil-badge]: https://img.shields.io/badge/Made%20in%20Brazil-555.svg?logo=data:image/svg%2bxml;base64,PHN2ZyB3aWR0aD0iNjQiIGhlaWdodD0iNjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHJlY3QgZmlsbD0iIzRhOWMzOCIgc3Ryb2tlPSIjNGE5YzM4IiBzdHJva2Utd2lkdGg9IjEuNSIgeD0iMCIgeT0iOC41IiB3aWR0aD0iNjQiIGhlaWdodD0iNDciLz48cGF0aCBzdHJva2U9IiNmZWUxM2IiIGlkPSJzdmdfNCIgZD0ibTUuNjkzMTgsMzJsMjYuMzA2ODIsLTIwLjEyMTIxbDI2LjMwNjgyLDIwLjEyMTIxbC0yNi4zMDY4MiwyMC4xMjEyMWwtMjYuMzA2ODIsLTIwLjEyMTIxeiIgc3Ryb2tlLW9wYWNpdHk9Im51bGwiIHN0cm9rZS13aWR0aD0iMS41IiBmaWxsPSIjZmVlMTNiIi8+PHBhdGggc3Ryb2tlPSIjMDUyZDc2IiBpZD0ic3ZnXzciIGQ9Im0yMS43MjkzMSwzMS45MDc4MWwwLDBjMCwtNS4yOTQ1MSA0LjYyOTc4LC05LjU4NjU1IDEwLjM0MDkxLC05LjU4NjU1bDAsMGMyLjc0MjU4LDAgNS4zNzI4MywxLjAxMDAxIDcuMzEyMTMsMi44MDc4M2MxLjkzOTMsMS43OTc4MyAzLjAyODc4LDQuMjM2MiAzLjAyODc4LDYuNzc4NzFsMCwwYzAsNS4yOTQ1IC00LjYyOTc4LDkuNTg2NTUgLTEwLjM0MDkxLDkuNTg2NTVsMCwwYy01LjcxMTEzLDAgLTEwLjM0MDkxLC00LjI5MjA0IC0xMC4zNDA5MSwtOS41ODY1NWwwLDAuMDAwMDF6bTEwLjM0MDkxLC05LjU4NjU1bDAsMTkuMTczMDhtLTEwLjM0MDkxLC05LjU4NjU1bDIwLjY4MTgyLDAiIHN0cm9rZS13aWR0aD0iMS41IiBmaWxsPSIjMDUyZDc2Ii8+PC9zdmc+
152151
[brazil-country]: https://www.google.com/maps/place/Brazil/
153152
[styleci-badge]: https://github.styleci.io/repos/88016589/shield?branch=dev&style=flat
154153
[style-ci]: https://github.styleci.io/repos/88016589
155-
[gh-issues]: https://github.com/dptole/laravel-survey/issues
156-
[gh-issues-badge]: https://img.shields.io/github/issues-raw/dptole/laravel-survey.svg
157154
[circle-ci]: https://circleci.com/gh/dptole/laravel-survey
158155
[circle-ci-badge]: https://img.shields.io/circleci/project/dptole/laravel-survey.svg
159156
[google-recaptcha-url]: https://www.google.com/recaptcha/admin#list

resources/assets/sass/app.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,9 @@ body {
155155
}
156156
}
157157

158-
@media (max-width: 399px) {
158+
@media (max-width: 359px) {
159159
html:after {
160-
content: "The device must be at least 400px wide.";
160+
content: "The device must be at least 360px wide.";
161161
font-size: 24px;
162162
display: flex;
163163
align-items: center;

0 commit comments

Comments
 (0)