Skip to content

Instantly share code, notes, and snippets.

View nalakawula's full-sized avatar
👨‍💼
Working

sumarsono nalakawula

👨‍💼
Working
View GitHub Profile
@nalakawula
nalakawula / vuessr.nginx.conf
Created February 2, 2021 03:46 — forked from webislife/vuessr.nginx.conf
example nginx config for vue ssr
#GREEN
upstream NODE_SSR_GREEN { server 127.0.0.1:8080; }
upstream NODE_SSR_BLUE { server 127.0.0.1:8082; }
#Основной сервер
server {
set $ACTIVE_SSR NODE_SSR_GREEN;
set $APP_ROOT /var/www/app-GREEN/dist;
server_name vue.ssr;
@nalakawula
nalakawula / haproxy.cfg
Created August 12, 2020 06:35 — forked from kerren/haproxy.cfg
The haproxy.cfg file on the router host
global
log /dev/log local0
log /dev/log local1 notice
chroot /var/lib/haproxy
stats socket /run/haproxy/admin.sock mode 660 level admin expose-fd listeners
stats timeout 30s
user haproxy
group haproxy
daemon
@nalakawula
nalakawula / wigeguard_setup.md
Created January 22, 2020 05:49 — forked from atomlab/wigeguard_setup.md
Wireguard setup on Ubuntu 18.04

Wireguard setup on Ubuntu 16.04/18.04

Install

# sudo add-apt-repository ppa:wireguard/wireguard
# sudo apt-get update
# sudo apt-get install wireguard

Generate keys

# Begin HackRepair.com Blacklist
RewriteEngine on
# Abuse Agent Blocking
RewriteCond %{HTTP_USER_AGENT} ^[Ww]eb[Bb]andit [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^$ [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Acunetix [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^binlar [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^BlackWidow [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Bolt\ 0 [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^BOT\ for\ JCE [NC,OR]
version: "3.3"
services:
traefik:
image: "traefik:v2.0.0"
command:
- --entrypoints.web.address=:80
- --entrypoints.websecure.address=:443
- --providers.docker
- --api
[Unit]
Description=Generate email log pekerjaan
[Service]
User=sumarsono
Group=sumarsono
Type=simple
ExecStart=/home/sumarsono/Sumarsono/sumar-bash/generateMail.sh
[Install]
# -----------------------------------------------------------------------------------------------------------------------------
# --------------------- General Settings --------------------------------------------------------------------------------------
# -----------------------------------------------------------------------------------------------------------------------------
HOSTNAME=vps
DOMAINNAME=sumarsono.com
CONTAINER_NAME=mailserver
# empty => uses the `hostname` command to get the mail server's canonical hostname
@nalakawula
nalakawula / codeiginter-server-config.md
Created February 18, 2019 01:35 — forked from yidas/codeiginter-server-config.md
Codeigniter 3 server configuration for Nginx & Apache

Codeigniter 3 server configuration for Nginx & Apache

Web Server Site Configuration

Recommended Apache Configuration

Use the following configuration in Apache's httpd.conf file or within a virtual host configuration. Note that you should set DocumentRoot and ServerName fit to your environment:

@nalakawula
nalakawula / aliendalvik.log
Created January 25, 2019 01:38
Log aliendalvik sailfish os untuk midp
Sep 27 09:45:11 Sailfish systemd[1]: Starting Myriad Alien Dalvik...
Sep 27 09:45:11 Sailfish apkd[4319]: Alien Dalvik is activating (start-pre)
Sep 27 09:45:11 Sailfish apkd[4319]: Alien Dalvik is activating (start)
Sep 27 09:45:11 Sailfish start_alien.sh[6006]: ln: creating symbolic link `/data/misc/camera/camera': File exists
Sep 27 09:45:11 Sailfish start_alien.sh[6006]: /data exists already
Sep 27 09:45:11 Sailfish start_alien.sh[6006]: /data/dalvik-cache exists already
Sep 27 09:45:11 Sailfish start_alien.sh[6006]: /data/app-private exists already
Sep 27 09:45:11 Sailfish start_alien.sh[6006]: /data/app exists already
Sep 27 09:45:11 Sailfish start_alien.sh[6006]: /data/data exists already
Sep 27 09:45:11 Sailfish start_alien.sh[6006]: /data/misc exists already
@nalakawula
nalakawula / nginx.conf
Created December 29, 2018 03:54
Nginx reserve proxy tomcat
server {
listen 80;
server_name yourdomain.com;
root /etc/tomcat7/webapps/apple;
proxy_cache one;
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;