-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/im-aeo/V
- Loading branch information
Showing
246 changed files
with
16,193 additions
and
1,658 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
APP_NAME=Laravel | ||
APP_ENV=local | ||
APP_KEY= | ||
APP_DEBUG=true | ||
APP_URL=http://localhost | ||
|
||
LOG_CHANNEL=stack | ||
LOG_DEPRECATIONS_CHANNEL=null | ||
LOG_LEVEL=debug | ||
|
||
DB_CONNECTION=sqlite | ||
DB_HOST=127.0.0.1 | ||
DB_PORT=3306 | ||
DB_DATABASE=database/database.sqlite | ||
DB_USERNAME=root | ||
DB_PASSWORD= | ||
|
||
BROADCAST_DRIVER=log | ||
CACHE_DRIVER=file | ||
FILESYSTEM_DISK=local | ||
QUEUE_CONNECTION=sync | ||
SESSION_DRIVER=file | ||
SESSION_LIFETIME=120 | ||
|
||
MEMCACHED_HOST=127.0.0.1 | ||
|
||
REDIS_HOST=127.0.0.1 | ||
REDIS_PASSWORD=null | ||
REDIS_PORT=6379 | ||
|
||
MAIL_MAILER=smtp | ||
MAIL_HOST=mailpit | ||
MAIL_PORT=1025 | ||
MAIL_USERNAME=null | ||
MAIL_PASSWORD=null | ||
MAIL_ENCRYPTION=null | ||
MAIL_FROM_ADDRESS="hello@example.com" | ||
MAIL_FROM_NAME="${APP_NAME}" | ||
|
||
AWS_ACCESS_KEY_ID= | ||
AWS_SECRET_ACCESS_KEY= | ||
AWS_DEFAULT_REGION=us-east-1 | ||
AWS_BUCKET= | ||
AWS_USE_PATH_STYLE_ENDPOINT=false | ||
|
||
PUSHER_APP_ID= | ||
PUSHER_APP_KEY= | ||
PUSHER_APP_SECRET= | ||
PUSHER_HOST= | ||
PUSHER_PORT=443 | ||
PUSHER_SCHEME=https | ||
PUSHER_APP_CLUSTER=mt1 | ||
|
||
VITE_APP_NAME="${APP_NAME}" | ||
VITE_PUSHER_APP_KEY="${PUSHER_APP_KEY}" | ||
VITE_PUSHER_HOST="${PUSHER_HOST}" | ||
VITE_PUSHER_PORT="${PUSHER_PORT}" | ||
VITE_PUSHER_SCHEME="${PUSHER_SCHEME}" | ||
VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Laravel | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
laravel-tests: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: shivammathur/setup-php@15c43e89cdef867065b0213be354c2841860869e | ||
with: | ||
php-version: '8.1' | ||
extensions: mysql, mbstring, memcache, memcached | ||
- uses: actions/checkout@v3 | ||
- name: Copy .env | ||
run: php -r "file_exists('.env') || copy('.env.example', '.env');" | ||
- name: Install Dependencies | ||
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist | ||
- name: Generate key | ||
run: php artisan key:generate | ||
- name: Directory Permissions | ||
run: chmod -R 777 storage bootstrap/cache | ||
- name: Create Database | ||
run: | | ||
mkdir -p database | ||
touch database/database.sqlite | ||
- name: Run Migrations | ||
run: php artisan migrate | ||
- name: Execute tests (Unit and Feature tests) via PHPUnit | ||
env: | ||
DB_CONNECTION: sqlite | ||
DB_DATABASE: database/database.sqlite | ||
run: vendor/bin/phpunit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/vendor/ | ||
node_modules/ | ||
npm-debug.log | ||
yarn-error.log | ||
|
||
# Laravel 4 specific | ||
bootstrap/compiled.php | ||
app/storage/ | ||
|
||
# Laravel 5 & Lumen specific | ||
public/storage | ||
public/hot | ||
|
||
# Laravel 5 & Lumen specific with changed public path | ||
public_html/storage | ||
public_html/hot | ||
|
||
storage/*.key | ||
.env | ||
Homestead.yaml | ||
Homestead.json | ||
/.vagrant | ||
.phpunit.result.cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
FROM debian:bullseye-slim | ||
|
||
LABEL maintainer="NGINX Docker Maintainers <docker-maint@nginx.com>" | ||
|
||
# Define NGINX versions for NGINX Plus and NGINX Plus modules | ||
# Uncomment this block and the versioned nginxPackages block in the main RUN | ||
# instruction to install a specific release | ||
# ENV NGINX_VERSION 29 | ||
# ENV NJS_VERSION 0.7.12 | ||
# ENV PKG_RELEASE 1~bullseye | ||
|
||
# Download certificate and key from the customer portal (https://account.f5.com) | ||
# and copy to the build context | ||
RUN --mount=type=secret,id=nginx-crt,dst=nginx-repo.crt \ | ||
--mount=type=secret,id=nginx-key,dst=nginx-repo.key \ | ||
set -x \ | ||
# Create nginx user/group first, to be consistent throughout Docker variants | ||
&& addgroup --system --gid 101 nginx \ | ||
&& adduser --system --disabled-login --ingroup nginx --no-create-home --home /nonexistent --gecos "nginx user" --shell /bin/false --uid 101 nginx \ | ||
&& apt-get update \ | ||
&& apt-get install --no-install-recommends --no-install-suggests -y \ | ||
ca-certificates \ | ||
gnupg1 \ | ||
lsb-release \ | ||
&& \ | ||
NGINX_GPGKEY=573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62; \ | ||
NGINX_GPGKEY_PATH=/usr/share/keyrings/nginx-archive-keyring.gpg; \ | ||
export GNUPGHOME="$(mktemp -d)"; \ | ||
found=''; \ | ||
for server in \ | ||
hkp://keyserver.ubuntu.com:80 \ | ||
pgp.mit.edu \ | ||
; do \ | ||
echo "Fetching GPG key $NGINX_GPGKEY from $server"; \ | ||
gpg1 --keyserver "$server" --keyserver-options timeout=10 --recv-keys "$NGINX_GPGKEY" && found=yes && break; \ | ||
done; \ | ||
test -z "$found" && echo >&2 "error: failed to fetch GPG key $NGINX_GPGKEY" && exit 1; \ | ||
gpg1 --export "$NGINX_GPGKEY" > "$NGINX_GPGKEY_PATH" ; \ | ||
rm -rf "$GNUPGHOME"; \ | ||
apt-get remove --purge --auto-remove -y gnupg1 && rm -rf /var/lib/apt/lists/* \ | ||
# Install the latest release of NGINX Plus and/or NGINX Plus modules | ||
# Uncomment individual modules if necessary | ||
# Use versioned packages over defaults to specify a release | ||
&& nginxPackages=" \ | ||
nginx-plus \ | ||
# nginx-plus=${NGINX_VERSION}-${PKG_RELEASE} \ | ||
# nginx-plus-module-xslt \ | ||
# nginx-plus-module-xslt=${NGINX_VERSION}-${PKG_RELEASE} \ | ||
# nginx-plus-module-geoip \ | ||
# nginx-plus-module-geoip=${NGINX_VERSION}-${PKG_RELEASE} \ | ||
# nginx-plus-module-image-filter \ | ||
# nginx-plus-module-image-filter=${NGINX_VERSION}-${PKG_RELEASE} \ | ||
# nginx-plus-module-perl \ | ||
# nginx-plus-module-perl=${NGINX_VERSION}-${PKG_RELEASE} \ | ||
# nginx-plus-module-njs \ | ||
# nginx-plus-module-njs=${NGINX_VERSION}+${NJS_VERSION}-${PKG_RELEASE} \ | ||
" \ | ||
&& echo "Acquire::https::pkgs.nginx.com::Verify-Peer \"true\";" > /etc/apt/apt.conf.d/90nginx \ | ||
&& echo "Acquire::https::pkgs.nginx.com::Verify-Host \"true\";" >> /etc/apt/apt.conf.d/90nginx \ | ||
&& echo "Acquire::https::pkgs.nginx.com::SslCert \"/etc/ssl/nginx/nginx-repo.crt\";" >> /etc/apt/apt.conf.d/90nginx \ | ||
&& echo "Acquire::https::pkgs.nginx.com::SslKey \"/etc/ssl/nginx/nginx-repo.key\";" >> /etc/apt/apt.conf.d/90nginx \ | ||
&& printf "deb [signed-by=/usr/share/keyrings/nginx-archive-keyring.gpg] https://pkgs.nginx.com/plus/debian `lsb_release -cs` nginx-plus\n" > /etc/apt/sources.list.d/nginx-plus.list \ | ||
&& mkdir -p /etc/ssl/nginx \ | ||
&& cat nginx-repo.crt > /etc/ssl/nginx/nginx-repo.crt \ | ||
&& cat nginx-repo.key > /etc/ssl/nginx/nginx-repo.key \ | ||
&& apt-get update \ | ||
&& apt-get install --no-install-recommends --no-install-suggests -y \ | ||
$nginxPackages \ | ||
curl \ | ||
gettext-base \ | ||
&& apt-get remove --purge -y lsb-release \ | ||
&& apt-get remove --purge --auto-remove -y && rm -rf /var/lib/apt/lists/* /etc/apt/sources.list.d/nginx-plus.list \ | ||
&& rm -rf /etc/apt/apt.conf.d/90nginx /etc/ssl/nginx \ | ||
# Forward request logs to Docker log collector | ||
&& ln -sf /dev/stdout /var/log/nginx/access.log \ | ||
&& ln -sf /dev/stderr /var/log/nginx/error.log | ||
|
||
EXPOSE 80 | ||
|
||
STOPSIGNAL SIGQUIT | ||
|
||
CMD ["nginx", "-g", "daemon off;"] |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
FROM debian:bullseye-slim | ||
|
||
LABEL maintainer="NGINX Docker Maintainers <docker-maint@nginx.com>" | ||
|
||
# Define NGINX versions for NGINX Plus and NGINX Plus modules | ||
# Uncomment this block and the versioned nginxPackages block in the main RUN | ||
# instruction to install a specific release | ||
# ENV NGINX_VERSION 29 | ||
# ENV NJS_VERSION 0.7.12 | ||
# ENV PKG_RELEASE 1~bullseye | ||
|
||
# Download certificate and key from the customer portal (https://account.f5.com) | ||
# and copy to the build context | ||
RUN --mount=type=secret,id=nginx-crt,dst=nginx-repo.crt \ | ||
--mount=type=secret,id=nginx-key,dst=nginx-repo.key \ | ||
set -x \ | ||
# Create nginx user/group first, to be consistent throughout Docker variants | ||
&& addgroup --system --gid 101 nginx \ | ||
&& adduser --system --disabled-login --ingroup nginx --no-create-home --home /nonexistent --gecos "nginx user" --shell /bin/false --uid 101 nginx \ | ||
&& apt-get update \ | ||
&& apt-get install --no-install-recommends --no-install-suggests -y \ | ||
ca-certificates \ | ||
gnupg1 \ | ||
lsb-release \ | ||
&& \ | ||
NGINX_GPGKEY=573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62; \ | ||
NGINX_GPGKEY_PATH=/usr/share/keyrings/nginx-archive-keyring.gpg; \ | ||
export GNUPGHOME="$(mktemp -d)"; \ | ||
found=''; \ | ||
for server in \ | ||
hkp://keyserver.ubuntu.com:80 \ | ||
pgp.mit.edu \ | ||
; do \ | ||
echo "Fetching GPG key $NGINX_GPGKEY from $server"; \ | ||
gpg1 --keyserver "$server" --keyserver-options timeout=10 --recv-keys "$NGINX_GPGKEY" && found=yes && break; \ | ||
done; \ | ||
test -z "$found" && echo >&2 "error: failed to fetch GPG key $NGINX_GPGKEY" && exit 1; \ | ||
gpg1 --export "$NGINX_GPGKEY" > "$NGINX_GPGKEY_PATH" ; \ | ||
rm -rf "$GNUPGHOME"; \ | ||
apt-get remove --purge --auto-remove -y gnupg1 && rm -rf /var/lib/apt/lists/* \ | ||
# Install the latest release of NGINX Plus and/or NGINX Plus modules | ||
# Uncomment individual modules if necessary | ||
# Use versioned packages over defaults to specify a release | ||
&& nginxPackages=" \ | ||
nginx-plus \ | ||
# nginx-plus=${NGINX_VERSION}-${PKG_RELEASE} \ | ||
# nginx-plus-module-xslt \ | ||
# nginx-plus-module-xslt=${NGINX_VERSION}-${PKG_RELEASE} \ | ||
# nginx-plus-module-geoip \ | ||
# nginx-plus-module-geoip=${NGINX_VERSION}-${PKG_RELEASE} \ | ||
# nginx-plus-module-image-filter \ | ||
# nginx-plus-module-image-filter=${NGINX_VERSION}-${PKG_RELEASE} \ | ||
# nginx-plus-module-perl \ | ||
# nginx-plus-module-perl=${NGINX_VERSION}-${PKG_RELEASE} \ | ||
# nginx-plus-module-njs \ | ||
# nginx-plus-module-njs=${NGINX_VERSION}+${NJS_VERSION}-${PKG_RELEASE} \ | ||
" \ | ||
&& echo "Acquire::https::pkgs.nginx.com::Verify-Peer \"true\";" > /etc/apt/apt.conf.d/90nginx \ | ||
&& echo "Acquire::https::pkgs.nginx.com::Verify-Host \"true\";" >> /etc/apt/apt.conf.d/90nginx \ | ||
&& echo "Acquire::https::pkgs.nginx.com::SslCert \"/etc/ssl/nginx/nginx-repo.crt\";" >> /etc/apt/apt.conf.d/90nginx \ | ||
&& echo "Acquire::https::pkgs.nginx.com::SslKey \"/etc/ssl/nginx/nginx-repo.key\";" >> /etc/apt/apt.conf.d/90nginx \ | ||
&& printf "deb [signed-by=/usr/share/keyrings/nginx-archive-keyring.gpg] https://pkgs.nginx.com/plus/debian `lsb_release -cs` nginx-plus\n" > /etc/apt/sources.list.d/nginx-plus.list \ | ||
&& mkdir -p /etc/ssl/nginx \ | ||
&& cat nginx-repo.crt > /etc/ssl/nginx/nginx-repo.crt \ | ||
&& cat nginx-repo.key > /etc/ssl/nginx/nginx-repo.key \ | ||
&& apt-get update \ | ||
&& apt-get install --no-install-recommends --no-install-suggests -y \ | ||
$nginxPackages \ | ||
curl \ | ||
gettext-base \ | ||
&& apt-get remove --purge -y lsb-release \ | ||
&& apt-get remove --purge --auto-remove -y && rm -rf /var/lib/apt/lists/* /etc/apt/sources.list.d/nginx-plus.list \ | ||
&& rm -rf /etc/apt/apt.conf.d/90nginx /etc/ssl/nginx \ | ||
# Forward request logs to Docker log collector | ||
&& ln -sf /dev/stdout /var/log/nginx/access.log \ | ||
&& ln -sf /dev/stderr /var/log/nginx/error.log | ||
|
||
EXPOSE 80 | ||
|
||
STOPSIGNAL SIGQUIT | ||
|
||
CMD ["nginx", "-g", "daemon off;"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
FROM debian:bullseye-slim | ||
|
||
LABEL maintainer="NGINX Docker Maintainers <docker-maint@nginx.com>" | ||
|
||
# Define NGINX versions for NGINX Plus and NGINX Plus modules | ||
# Uncomment this block and the versioned nginxPackages block in the main RUN | ||
# instruction to install a specific release | ||
# ENV NGINX_VERSION 29 | ||
# ENV NJS_VERSION 0.7.12 | ||
# ENV PKG_RELEASE 1~bullseye | ||
|
||
# Download certificate and key from the customer portal (https://account.f5.com) | ||
# and copy to the build context | ||
RUN --mount=type=secret,id=nginx-crt,dst=nginx-repo.crt \ | ||
--mount=type=secret,id=nginx-key,dst=nginx-repo.key \ | ||
set -x \ | ||
# Create nginx user/group first, to be consistent throughout Docker variants | ||
&& addgroup --system --gid 101 nginx \ | ||
&& adduser --system --disabled-login --ingroup nginx --no-create-home --home /nonexistent --gecos "nginx user" --shell /bin/false --uid 101 nginx \ | ||
&& apt-get update \ | ||
&& apt-get install --no-install-recommends --no-install-suggests -y \ | ||
ca-certificates \ | ||
gnupg1 \ | ||
lsb-release \ | ||
&& \ | ||
NGINX_GPGKEY=573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62; \ | ||
NGINX_GPGKEY_PATH=/usr/share/keyrings/nginx-archive-keyring.gpg; \ | ||
export GNUPGHOME="$(mktemp -d)"; \ | ||
found=''; \ | ||
for server in \ | ||
hkp://keyserver.ubuntu.com:80 \ | ||
pgp.mit.edu \ | ||
; do \ | ||
echo "Fetching GPG key $NGINX_GPGKEY from $server"; \ | ||
gpg1 --keyserver "$server" --keyserver-options timeout=10 --recv-keys "$NGINX_GPGKEY" && found=yes && break; \ | ||
done; \ | ||
test -z "$found" && echo >&2 "error: failed to fetch GPG key $NGINX_GPGKEY" && exit 1; \ | ||
gpg1 --export "$NGINX_GPGKEY" > "$NGINX_GPGKEY_PATH" ; \ | ||
rm -rf "$GNUPGHOME"; \ | ||
apt-get remove --purge --auto-remove -y gnupg1 && rm -rf /var/lib/apt/lists/* \ | ||
# Install the latest release of NGINX Plus and/or NGINX Plus modules | ||
# Uncomment individual modules if necessary | ||
# Use versioned packages over defaults to specify a release | ||
&& nginxPackages=" \ | ||
nginx-plus \ | ||
# nginx-plus=${NGINX_VERSION}-${PKG_RELEASE} \ | ||
# nginx-plus-module-xslt \ | ||
# nginx-plus-module-xslt=${NGINX_VERSION}-${PKG_RELEASE} \ | ||
# nginx-plus-module-geoip \ | ||
# nginx-plus-module-geoip=${NGINX_VERSION}-${PKG_RELEASE} \ | ||
# nginx-plus-module-image-filter \ | ||
# nginx-plus-module-image-filter=${NGINX_VERSION}-${PKG_RELEASE} \ | ||
# nginx-plus-module-perl \ | ||
# nginx-plus-module-perl=${NGINX_VERSION}-${PKG_RELEASE} \ | ||
# nginx-plus-module-njs \ | ||
# nginx-plus-module-njs=${NGINX_VERSION}+${NJS_VERSION}-${PKG_RELEASE} \ | ||
" \ | ||
&& echo "Acquire::https::pkgs.nginx.com::Verify-Peer \"true\";" > /etc/apt/apt.conf.d/90nginx \ | ||
&& echo "Acquire::https::pkgs.nginx.com::Verify-Host \"true\";" >> /etc/apt/apt.conf.d/90nginx \ | ||
&& echo "Acquire::https::pkgs.nginx.com::SslCert \"/etc/ssl/nginx/nginx-repo.crt\";" >> /etc/apt/apt.conf.d/90nginx \ | ||
&& echo "Acquire::https::pkgs.nginx.com::SslKey \"/etc/ssl/nginx/nginx-repo.key\";" >> /etc/apt/apt.conf.d/90nginx \ | ||
&& printf "deb [signed-by=/usr/share/keyrings/nginx-archive-keyring.gpg] https://pkgs.nginx.com/plus/debian `lsb_release -cs` nginx-plus\n" > /etc/apt/sources.list.d/nginx-plus.list \ | ||
&& mkdir -p /etc/ssl/nginx \ | ||
&& cat nginx-repo.crt > /etc/ssl/nginx/nginx-repo.crt \ | ||
&& cat nginx-repo.key > /etc/ssl/nginx/nginx-repo.key \ | ||
&& apt-get update \ | ||
&& apt-get install --no-install-recommends --no-install-suggests -y \ | ||
$nginxPackages \ | ||
curl \ | ||
gettext-base \ | ||
&& apt-get remove --purge -y lsb-release \ | ||
&& apt-get remove --purge --auto-remove -y && rm -rf /var/lib/apt/lists/* /etc/apt/sources.list.d/nginx-plus.list \ | ||
&& rm -rf /etc/apt/apt.conf.d/90nginx /etc/ssl/nginx \ | ||
# Forward request logs to Docker log collector | ||
&& ln -sf /dev/stdout /var/log/nginx/access.log \ | ||
&& ln -sf /dev/stderr /var/log/nginx/error.log | ||
|
||
EXPOSE 80 | ||
|
||
STOPSIGNAL SIGQUIT | ||
|
||
CMD ["nginx", "-g", "daemon off;"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"git.enabled": false | ||
} |
Oops, something went wrong.