-
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.
- Loading branch information
Jahrulnr
committed
May 25, 2024
1 parent
0088d5b
commit e427f3b
Showing
5 changed files
with
50 additions
and
92 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
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,24 @@ | ||
echo "apps:x:0:0:root:/root:/bin/bash" >> /etc/passwd | ||
echo "alias ll='ls -l'" >> /root/.bashrc | ||
apk update | ||
apk add --no-cache curl bash bash-completion shadow tzdata | ||
apk add --no-cache docker | ||
apk add --no-cache nginx nginx-mod-stream | ||
apk add --no-cache git python3 | ||
python3 -m venv /opt/venv | ||
mkdir -p /run/php | ||
pip install wheel | ||
pip install supervisor | ||
pip install git+https://github.com/coderanger/supervisor-stdout | ||
apk add --no-cache php82 php82-fpm php82-cli php82-phar php82-iconv php82-mbstring \ | ||
php82-gd php82-xml php82-zip php82-curl php82-opcache \ | ||
php82-fileinfo php82-session php82-dom php82-tokenizer php82-exif \ | ||
php82-xmlreader php82-simplexml php82-xmlwriter \ | ||
php82-sqlite3 php82-pdo_sqlite php82-openssl php82-redis php82-mysqli php82-pdo_mysql | ||
ln -s /usr/sbin/php-fpm82 /usr/sbin/php-fpm | ||
|
||
apk add certbot certbot-nginx --no-cache | ||
groupmod -og 1000 nginx && \ | ||
usermod -ou 1000 -g 1000 nginx && \ | ||
apk del shadow git | ||
rm -rf /tmp/* /var/cache/apk/* ~/.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,15 @@ | ||
# grafana | ||
# source https://github.com/Mtt6300/nginx-geo-metricsreporter | ||
log_format grafana '$remote_addr - $remote_user [$time_local] ' | ||
'"$request" $status $body_bytes_sent ' | ||
'"$http_referer" "$http_user_agent" "$host"'; | ||
|
||
# splunk | ||
log_format main 'src="$remote_addr" src_ip="$realip_remote_addr" user="$remote_user" ' | ||
'time_local="$time_local" status="$status" ' | ||
'bytes_out="$bytes_sent" bytes_in="$upstream_bytes_received" ' | ||
'http_referer="$http_referer" http_user_agent="$http_user_agent" ' | ||
'http_x_forwarded_for="$http_x_forwarded_for" ' | ||
'http_x_header="$http_x_header" uri_query="$query_string" uri_path="$uri" ' | ||
'http_method="$request_method" response_time="$upstream_response_time" ' | ||
'request_time="$request_time" category="$sent_http_content_type"'; |
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