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:
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
# ----------------------------------------------------------------------------------------------------------------------------- | |
# --------------------- General Settings -------------------------------------------------------------------------------------- | |
# ----------------------------------------------------------------------------------------------------------------------------- | |
HOSTNAME=vps | |
DOMAINNAME=sumarsono.com | |
CONTAINER_NAME=mailserver | |
# empty => uses the `hostname` command to get the mail server's canonical hostname |
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
[Unit] | |
Description=Generate email log pekerjaan | |
[Service] | |
User=sumarsono | |
Group=sumarsono | |
Type=simple | |
ExecStart=/home/sumarsono/Sumarsono/sumar-bash/generateMail.sh | |
[Install] |
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
version: "3.3" | |
services: | |
traefik: | |
image: "traefik:v2.0.0" | |
command: | |
- --entrypoints.web.address=:80 | |
- --entrypoints.websecure.address=:443 | |
- --providers.docker | |
- --api |
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
# 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] |
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
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 |
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
#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; |
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
#!/bin/bash | |
# Copyright 2018, 2019, 2020 Azure Zanculmarktum | |
# All rights reserved. | |
# | |
# Redistribution and use of this script, with or without modification, is | |
# permitted provided that the following conditions are met: | |
# | |
# 1. Redistributions of this script must retain the above copyright | |
# notice, this list of conditions and the following disclaimer. |
I'm writing this gist for my own records but it might help someone else too.
Support for Catalina has improved a lot since the update was first rolled out.
Note: See the NixOS manual for discussion of the --darwin-use-unencrypted-nix-store-volume
option.