Skip to content

Commit

Permalink
daily
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor committed May 5, 2017
1 parent 1b31e28 commit 9db043a
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 41 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.bzr
token_store.txt
security/fail2ban-conf/filter.d/apache-common.conf
TODO.md
/security/fail2ban-conf/filter.d/apache-common.conf
/TODO.md
14 changes: 7 additions & 7 deletions security/cert-update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# Set up certificate for use.
#
# VERSION :0.12.1
# VERSION :0.12.2
# DATE :2016-05-03
# URL :https://github.com/szepeviktor/debian-server-tools
# AUTHOR :Viktor Szépe <viktor@szepe.net>
Expand Down Expand Up @@ -303,16 +303,16 @@ Webmin() {
Check_requirements
Protect_certs

Courier_mta; Readkey
Courier_mta && Readkey

Proftpd; Readkey
Proftpd && Readkey

Apache2; Readkey
Apache2 && Readkey

Nginx; Readkey
Nginx && Readkey

Dovecot; Readkey
Dovecot && Readkey

Webmin
Webmin && Readkey

echo "OK."
1 change: 0 additions & 1 deletion virtualization/.gitignore

This file was deleted.

9 changes: 4 additions & 5 deletions webserver/apache-sites-available/Prg-site.conf
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,13 @@
# Off for self-signed certificates
SSLUseStapling Off
# Public key + "include intermediate CA certificates, sorted from leaf to root"
# Pub-key.pem + sub.classX.server.ca.pem
SSLCertificateFile /etc/ssl/localcerts/@@CN@@-public.pem
# Private key
SSLCertificateKeyFile /etc/ssl/private/@@CN@@-private.key
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory /usr/lib/cgi-bin>
<Directory "/usr/lib/cgi-bin">
SSLOptions +StdEnvVars
</Directory>

Expand Down Expand Up @@ -58,11 +57,11 @@
AuthUserFile /home/${SITE_USER}/website/htpasswords
Require valid-user
</Proxy>
<Location /robots.txt>
<Location "/robots.txt">
Require all granted
</Location>

<Directory /home/${SITE_USER}/website/>
<Directory "/home/${SITE_USER}/website">
Options FollowSymLinks
#AllowOverride All
AllowOverride None
Expand All @@ -79,7 +78,7 @@
# See ProxyPassMatch above

# Missing images
<Directory ${DOCUMENT_ROOT}>
<Directory "${DOCUMENT_ROOT}">
RewriteEngine On
RewriteCond "%{REQUEST_FILENAME}" !-f
RewriteRule "^.+\.(jpe?g|png|gif)$" "/default-image-38FC48.jpg" [END]
Expand Down
55 changes: 29 additions & 26 deletions webserver/wordpress.gitignore
Original file line number Diff line number Diff line change
@@ -1,31 +1,34 @@
# Core
wp-admin/
wp-includes/
index.php
licenc.txt
license.txt
olvasdel.html
readme.html
wp-activate.php
wp-blog-header.php
wp-comments-post.php
wp-config-sample.php
wp-cron.php
wp-links-opml.php
wp-load.php
wp-login.php
wp-mail.php
wp-settings.php
wp-signup.php
wp-trackback.php
xmlrpc.php
/wp-admin/
/wp-includes/
/index.php
/licenc.txt
/license.txt
/olvasdel.html
/readme.html
/wp-activate.php
/wp-blog-header.php
/wp-comments-post.php
/wp-config-sample.php
/wp-cron.php
/wp-links-opml.php
/wp-load.php
/wp-login.php
/wp-mail.php
/wp-settings.php
/wp-signup.php
/wp-trackback.php
/xmlrpc.php

# Theme under git
wp-content/themes/THEME-NAME/
/wp-content/themes/THEME-NAME/

# Content
wp-content/uploads/**/*.jpg
wp-content/uploads/**/*.png
wp-content/cache/
!wp-content/cache/**/*.php
!wp-content/cache/**/.htaccess
/wp-content/uploads/**/*.jpg
/wp-content/uploads/**/*.png
/wp-content/cache/**/*.html
/wp-content/cache/**/*.html.gz
/wp-content/cache/**/*.css
/wp-content/cache/**/*.css.gz
/wp-content/cache/**/*.js
/wp-content/cache/**/*.js.gz

0 comments on commit 9db043a

Please sign in to comment.