From 627ad8996e53ea7b3e12f723f6548fa04d718b06 Mon Sep 17 00:00:00 2001 From: Gitea Date: Wed, 18 Mar 2020 03:32:27 +1100 Subject: [PATCH] add hk-01.bukop.com --- ...pn.supertraderfx.ayvwd8em49pvoa3g.com.conf | 89 +++++++++++++++++++ hk-01/etc/systemd/system/rpn.service | 20 +++++ 2 files changed, 109 insertions(+) create mode 100644 hk-01/etc/apache2/sites-enabled/rpn.supertraderfx.ayvwd8em49pvoa3g.com.conf create mode 100644 hk-01/etc/systemd/system/rpn.service diff --git a/hk-01/etc/apache2/sites-enabled/rpn.supertraderfx.ayvwd8em49pvoa3g.com.conf b/hk-01/etc/apache2/sites-enabled/rpn.supertraderfx.ayvwd8em49pvoa3g.com.conf new file mode 100644 index 0000000..3bc6f39 --- /dev/null +++ b/hk-01/etc/apache2/sites-enabled/rpn.supertraderfx.ayvwd8em49pvoa3g.com.conf @@ -0,0 +1,89 @@ + +SuexecUserGroup "#1003" "#1003" +ServerName rpn.supertraderfx.ayvwd8em49pvoa3g.com +ServerAlias www.rpn.supertraderfx.ayvwd8em49pvoa3g.com +ServerAlias mail.rpn.supertraderfx.ayvwd8em49pvoa3g.com +ServerAlias webmail.rpn.supertraderfx.ayvwd8em49pvoa3g.com +ServerAlias admin.rpn.supertraderfx.ayvwd8em49pvoa3g.com +DocumentRoot /home/rpn/public_html +ErrorLog /var/log/virtualmin/rpn.supertraderfx.ayvwd8em49pvoa3g.com_error_log +CustomLog /var/log/virtualmin/rpn.supertraderfx.ayvwd8em49pvoa3g.com_access_log combined +ScriptAlias /cgi-bin/ /home/rpn/cgi-bin/ +DirectoryIndex index.html index.htm index.php index.php4 index.php5 + + +ProxyPreserveHost On +ProxyPass / http://localhost:8080/ +ProxyPassReverse / http://localhost:8080/ + +Options -Indexes +IncludesNOEXEC +SymLinksIfOwnerMatch +ExecCGI +allow from all +AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch +Require all granted +AddType application/x-httpd-php .php +AddHandler fcgid-script .php +AddHandler fcgid-script .php7.3 +FCGIWrapper /home/rpn/fcgi-bin/php7.3.fcgi .php +FCGIWrapper /home/rpn/fcgi-bin/php7.3.fcgi .php7.3 + + +allow from all +AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch +Require all granted + +RewriteEngine on +RewriteCond %{HTTP_HOST} =webmail.rpn.supertraderfx.ayvwd8em49pvoa3g.com +RewriteRule ^(.*) https://rpn.supertraderfx.ayvwd8em49pvoa3g.com:20000/ [R] +RewriteCond %{HTTP_HOST} =admin.rpn.supertraderfx.ayvwd8em49pvoa3g.com +RewriteRule ^(.*) https://rpn.supertraderfx.ayvwd8em49pvoa3g.com:10000/ [R] +RemoveHandler .php +RemoveHandler .php7.3 +FcgidMaxRequestLen 1073741824 + + +SuexecUserGroup "#1003" "#1003" +ServerName rpn.supertraderfx.ayvwd8em49pvoa3g.com +ServerAlias www.rpn.supertraderfx.ayvwd8em49pvoa3g.com +ServerAlias mail.rpn.supertraderfx.ayvwd8em49pvoa3g.com +ServerAlias webmail.rpn.supertraderfx.ayvwd8em49pvoa3g.com +ServerAlias admin.rpn.supertraderfx.ayvwd8em49pvoa3g.com +DocumentRoot /home/rpn/public_html +ErrorLog /var/log/virtualmin/rpn.supertraderfx.ayvwd8em49pvoa3g.com_error_log +CustomLog /var/log/virtualmin/rpn.supertraderfx.ayvwd8em49pvoa3g.com_access_log combined +ScriptAlias /cgi-bin/ /home/rpn/cgi-bin/ +DirectoryIndex index.html index.htm index.php index.php4 index.php5 + +ProxyPreserveHost On +ProxyPass / http://localhost:8080/ +ProxyPassReverse / http://localhost:8080/ + + + +Options -Indexes +IncludesNOEXEC +SymLinksIfOwnerMatch +ExecCGI +allow from all +AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch +Require all granted +AddType application/x-httpd-php .php +AddHandler fcgid-script .php +AddHandler fcgid-script .php7.3 +FCGIWrapper /home/rpn/fcgi-bin/php7.3.fcgi .php +FCGIWrapper /home/rpn/fcgi-bin/php7.3.fcgi .php7.3 + + +allow from all +AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch +Require all granted + +RewriteEngine on +RewriteCond %{HTTP_HOST} =webmail.rpn.supertraderfx.ayvwd8em49pvoa3g.com +RewriteRule ^(.*) https://rpn.supertraderfx.ayvwd8em49pvoa3g.com:20000/ [R] +RewriteCond %{HTTP_HOST} =admin.rpn.supertraderfx.ayvwd8em49pvoa3g.com +RewriteRule ^(.*) https://rpn.supertraderfx.ayvwd8em49pvoa3g.com:10000/ [R] +RemoveHandler .php +RemoveHandler .php7.3 +FcgidMaxRequestLen 1073741824 +SSLEngine on +SSLCertificateFile /home/rpn/ssl.cert +SSLCertificateKeyFile /home/rpn/ssl.key +SSLProtocol all -SSLv2 -SSLv3 -TLSv1 -TLSv1.1 + diff --git a/hk-01/etc/systemd/system/rpn.service b/hk-01/etc/systemd/system/rpn.service new file mode 100644 index 0000000..ddbe4a4 --- /dev/null +++ b/hk-01/etc/systemd/system/rpn.service @@ -0,0 +1,20 @@ +[Unit] +Description=rpn supertraderfx payment gateway Service +Documentation=man:fail2ban(1) +After=network.target firewalld.service +PartOf=firewalld.service + +[Service] +Type=simple +WorkingDirectory=/home/rpn/go +ExecStartPre=/bin/mkdir -p /home/rpn/go/logs +ExecStart=/home/rpn/go/rpn +# if should be logged in systemd journal, use following line or set logtarget to sysout in fail2ban.local +# ExecStart=/usr/bin/fail2ban-server -xf --logtarget=sysout start +PIDFile=/var/run/rpn.pid +Restart=on-failure +RestartPreventExitStatus=0 255 + +[Install] +WantedBy=multi-user.target +