linux - edit path for default errors, ignore comments in variables.env, install/prepare certbot

This commit is contained in:
bunkerity
2021-06-24 15:22:57 +02:00
parent b2cceb608c
commit bebe89afb0
5 changed files with 58 additions and 2 deletions

View File

@@ -0,0 +1,24 @@
# Basic website with PHP
This is a basic example for a typical PHP website/app.
## Docker
```shell
$ mkdir letsencrypt
$ chown root:101 letsencrypt
$ chmod 770 letsencrypt
$ chmod 755 web-files
$ chmod -R 744 web-files/*
$ docker-compose up
```
## Linux
```shell
$ cp variables.env /opt/bunkerized-nginx/variables.env
$ cp web-files/* /opt/bunkerized-nginx/www
$ chown -R www-data:www-data /opt/bunkerized-nginx/www/*
$ chmod -R 774 /opt/bunkerized-nginx/www/*
$ bunkerized-nginx
```

View File

@@ -0,0 +1,10 @@
HTTP_PORT=80
HTTPS_PORT=443
SERVER_NAME=www.website.com
AUTO_LETS_ENCRYPT=yes
REDIRECT_HTTP_TO_HTTPS=yes
DISABLE_DEFAULT_SERVER=yes
USE_CLIENT_CACHE=yes
USE_GZIP=yes
REMOTE_PHP=myphp
REMOTE_PHP_PATH=/app