-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update with template from https://github.com/404NotFoundIndonesia/lar…
- Loading branch information
1 parent
24e6014
commit 5409862
Showing
128 changed files
with
4,361 additions
and
1,021 deletions.
There are no files selected for viewing
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 @@ | ||
/data |
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,21 @@ | ||
[mysqld] | ||
character-set-server = utf8mb4 | ||
collation-server = utf8mb4_bin | ||
|
||
default-authentication-plugin = mysql_native_password | ||
|
||
log-error = /var/log/mysql/mysql-error.log | ||
|
||
slow_query_log = 1 | ||
slow_query_log_file = /var/log/mysql/mysql-slow.log | ||
long_query_time = 5.0 | ||
log_queries_not_using_indexes = 0 | ||
|
||
general_log = 1 | ||
general_log_file = /var/log/mysql/mysql-query.log | ||
|
||
[mysql] | ||
default-character-set = utf8mb4 | ||
|
||
[client] | ||
default-character-set = utf8mb4 |
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 @@ | ||
/data |
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,2 @@ | ||
* | ||
!.gitignore |
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,28 @@ | ||
server { | ||
listen 80; | ||
index index.php index.html; | ||
root /var/www/public; | ||
|
||
client_max_body_size 100M; # 413 Request Entity Too Large | ||
|
||
location / { | ||
root /var/www/public; | ||
index index.html index.php; | ||
try_files $uri $uri/ /index.php?$query_string; | ||
} | ||
|
||
location ~ \.php$ { | ||
try_files $uri =404; | ||
fastcgi_split_path_info ^(.+\.php)(/.+)$; | ||
fastcgi_pass php:9000; | ||
fastcgi_read_timeout 3600; | ||
fastcgi_index index.php; | ||
include fastcgi_params; | ||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | ||
fastcgi_param PATH_INFO $fastcgi_path_info; | ||
send_timeout 3600; | ||
proxy_connect_timeout 3600; | ||
proxy_read_timeout 3600; | ||
proxy_send_timeout 3600; | ||
} | ||
} |
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,34 @@ | ||
user nginx; | ||
worker_processes 1; | ||
|
||
error_log /var/log/nginx/error.log warn; | ||
pid /var/run/nginx.pid; | ||
|
||
events { | ||
worker_connections 1024; | ||
} | ||
|
||
http { | ||
include /etc/nginx/mime.types; | ||
default_type application/octet-stream; | ||
|
||
log_format main '$remote_addr - $remote_user [$time_local] "$request" ' | ||
'$status $body_bytes_sent "$http_referer" ' | ||
'"$http_user_agent" "$http_x_forwarded_for"'; | ||
|
||
access_log /var/log/nginx/access.log main; | ||
|
||
sendfile on; | ||
#tcp_nopush on; | ||
|
||
keepalive_timeout 65; | ||
|
||
server_tokens off; | ||
chunked_transfer_encoding off; | ||
|
||
gzip on; | ||
gzip_types application/json; | ||
gzip_min_length 1000; | ||
|
||
include /etc/nginx/conf.d/*.conf; | ||
} |
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,21 @@ | ||
# ~/.bashrc: executed by bash(1) for non-login shells. | ||
|
||
# Note: PS1 and umask are already set in /etc/profile. You should not | ||
# need this unless you want different defaults for root. | ||
PS1='${debian_chroot:+($debian_chroot)}\h:\w\$ ' | ||
umask 022 | ||
|
||
# You may uncomment the following lines if you want `ls' to be colorized: | ||
export SHELL | ||
export LS_OPTIONS='--color=auto' | ||
eval $(dircolors ~/dircolors-solarized/dircolors.256dark) | ||
alias ls='ls $LS_OPTIONS' | ||
alias ll='ls $LS_OPTIONS -l' | ||
alias l='ls $LS_OPTIONS -lA' | ||
|
||
# Some more alias to avoid making mistakes: | ||
alias rm='rm -i' | ||
alias cp='cp -i' | ||
alias mv='mv -i' | ||
|
||
alias phpd='php -dzend_extension=xdebug.so -dxdebug.mode=debug -dxdebug.idekey=PHPSTORM -dxdebug.start_with_request=yes -dxdebug.client_host=host.docker.internal -dxdebug.client_port=9001' |
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,57 @@ | ||
FROM php:8.3-fpm | ||
|
||
COPY php.ini /usr/local/etc/php/ | ||
COPY docker.conf /usr/local/etc/php-fpm.d/docker.conf | ||
COPY .bashrc /root/ | ||
|
||
# mix | ||
RUN apt-get update \ | ||
&& apt-get install -y build-essential zlib1g-dev default-mysql-client curl gnupg procps vim git unzip libzip-dev libpq-dev \ | ||
&& docker-php-ext-install zip pdo_mysql | ||
|
||
# intl | ||
RUN apt-get install -y libicu-dev \ | ||
&& docker-php-ext-configure intl \ | ||
&& docker-php-ext-install intl | ||
|
||
# gd | ||
RUN apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libpng-dev && \ | ||
docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ && \ | ||
docker-php-ext-install gd | ||
|
||
# redis | ||
RUN pecl install redis && docker-php-ext-enable redis | ||
|
||
# pcov | ||
RUN pecl install pcov && docker-php-ext-enable pcov | ||
|
||
# Xdebug | ||
# RUN pecl install xdebug \ | ||
# && docker-php-ext-enable xdebug \ | ||
# && echo ";zend_extension=xdebug" > /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini | ||
|
||
# Node.js, NPM, Yarn | ||
#RUN curl -sL https://deb.nodesource.com/setup_18.x | bash - | ||
#RUN apt-get install -y nodejs | ||
#RUN npm install npm@latest -g | ||
|
||
RUN apt-get install -y ca-certificates | ||
|
||
# Composer | ||
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" | ||
RUN php composer-setup.php | ||
RUN php -r "unlink('composer-setup.php');" | ||
RUN mv composer.phar /usr/local/bin/composer | ||
|
||
ENV COMPOSER_ALLOW_SUPERUSER 1 | ||
ENV COMPOSER_HOME /composer | ||
ENV PATH $PATH:/composer/vendor/bin | ||
RUN composer config --global process-timeout 3600 | ||
RUN composer global require "laravel/installer" | ||
|
||
WORKDIR /root | ||
RUN git clone https://github.com/seebi/dircolors-solarized | ||
|
||
WORKDIR /var/www | ||
|
||
#RUN composer docker-setup |
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,12 @@ | ||
[global] | ||
error_log = /proc/self/fd/2 | ||
;request_terminate_timeout = 1h | ||
|
||
[www] | ||
; if we send this to /proc/self/fd/1, it never appears | ||
access.log = /proc/self/fd/1 | ||
|
||
clear_env = no | ||
|
||
; Ensure worker stdout and stderr are sent to the main error log. | ||
catch_workers_output = yes |
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,7 @@ | ||
; Example | ||
|
||
; [Date] | ||
date.timezone = "Asia/Makassar" | ||
|
||
; [mbstring] | ||
; mbstring.language = Japanese |
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,2 @@ | ||
* | ||
!.gitignore |
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,64 @@ | ||
APP_NAME=Tuhfah | ||
APP_ENV=local | ||
APP_KEY= | ||
APP_DEBUG=true | ||
APP_TIMEZONE=Asia/Jakarta | ||
APP_URL=http://localhost | ||
|
||
APP_LOCALE=id | ||
APP_FALLBACK_LOCALE=en | ||
APP_FAKER_LOCALE=id_ID | ||
|
||
APP_MAINTENANCE_DRIVER=file | ||
APP_MAINTENANCE_STORE=database | ||
|
||
BCRYPT_ROUNDS=12 | ||
|
||
LOG_CHANNEL=stack | ||
LOG_STACK=daily | ||
LOG_DEPRECATIONS_CHANNEL=null | ||
LOG_LEVEL=debug | ||
|
||
DB_CONNECTION=mysql | ||
DB_HOST=db | ||
DB_PORT=3306 | ||
DB_DATABASE=tuhfahwebapp | ||
DB_USERNAME=tuhfahwebapp | ||
DB_PASSWORD=tuhfahwebapp | ||
|
||
SESSION_DRIVER=database | ||
SESSION_LIFETIME=120 | ||
SESSION_ENCRYPT=false | ||
SESSION_PATH=/ | ||
SESSION_DOMAIN=null | ||
|
||
BROADCAST_CONNECTION=log | ||
FILESYSTEM_DISK=local | ||
QUEUE_CONNECTION=database | ||
|
||
CACHE_STORE=database | ||
CACHE_PREFIX= | ||
|
||
MEMCACHED_HOST=127.0.0.1 | ||
|
||
REDIS_CLIENT=phpredis | ||
REDIS_HOST=redis | ||
REDIS_PASSWORD=null | ||
REDIS_PORT=6379 | ||
|
||
MAIL_MAILER=log | ||
MAIL_HOST=127.0.0.1 | ||
MAIL_PORT=2525 | ||
MAIL_USERNAME=null | ||
MAIL_PASSWORD=null | ||
MAIL_ENCRYPTION=null | ||
MAIL_FROM_ADDRESS="[email protected]" | ||
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 | ||
|
||
VITE_APP_NAME="${APP_NAME}" |
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,33 @@ | ||
name: Fix Code Style | ||
|
||
on: [push] | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
php: [8.3] | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
extensions: json, dom, curl, libxml, mbstring | ||
coverage: none | ||
|
||
- name: Install Pint | ||
run: composer global require laravel/pint | ||
|
||
- name: Run Pint | ||
run: pint | ||
|
||
- name: Commit linted files | ||
uses: stefanzweifel/git-auto-commit-action@v5 | ||
with: | ||
commit_message: "Fixes coding style with pint" |
Oops, something went wrong.