This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.
Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).
<?php | |
namespace App\Entity; | |
use App\Repository\BrandRepository; | |
use Doctrine\ORM\Mapping as ORM; | |
use Knp\DoctrineBehaviors\Contract\Entity\TranslatableInterface; | |
use Knp\DoctrineBehaviors\Model\Translatable\TranslatableTrait; | |
use Symfony\Component\HttpFoundation\File\File; | |
use Vich\UploaderBundle\Mapping\Annotation as Vich; |
This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.
Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).
#!/bin/bash -e | |
# Original credits to theodorosploumis | |
# IMPORTANT. My phpstom installation exists on /opt/. | |
if [ "$(whoami)" != "root" ] | |
then | |
echo "Sorry, you are not root." | |
exit 1 | |
fi | |
[config] | |
command = bash deploy.sh |
Securing WordPress using a combination of configuration changes and plugins.
wp-config.php
# Backup | |
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
# Restore | |
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
FROM alpine:latest | |
MAINTAINER Joshua Delsman <[email protected]> | |
EXPOSE 443 | |
ENV NGINX_VERSION 1.9.3 | |
RUN apk add --update openssl-dev pcre-dev zlib-dev build-base \ | |
&& rm -rf /var/cache/apk/* \ |