Skip to content

Instantly share code, notes, and snippets.

View alfarioekaputra's full-sized avatar

Rio alfarioekaputra

  • Nusa Tekno Global
  • Jakarta
View GitHub Profile
@alfarioekaputra
alfarioekaputra / nginx-example.conf
Last active September 30, 2020 07:16
Nginx configuration for bedrock wordpress
server {
server_name example.com www.example.com;
root /var/www/example.com/web;
index index.php index.htm index.html;
# Prevent PHP scripts from being executed inside the uploads folder.
location ~* /app/uploads/.*.php$ {
deny all;
}
@alfarioekaputra
alfarioekaputra / Dockerfile
Created September 29, 2019 05:11
Dockerfile - phpdockerio php73- Caddy WebServer
FROM phpdockerio/php73-fpm:latest
# Fix debconf warnings upon build
ARG DEBIAN_FRONTEND=noninteractive
# Install selected extensions and other stuff
RUN curl --silent --show-error --fail --location \
--header "Accept: application/tar+gzip, application/x-gzip, application/octet-stream" -o - \
"https://caddyserver.com/download/linux/amd64?plugins=http.expires,http.realip&license=personal" \
| tar --no-same-owner -C /usr/bin/ -xz caddy \
@alfarioekaputra
alfarioekaputra / Install PDO_OCI in php 7.md
Last active August 7, 2018 04:39
Install pdo oci in php7