dev: domain name in .env
This commit is contained in:
parent
7423c30a36
commit
f1f8d3adfc
4 changed files with 4 additions and 5 deletions
|
@ -1 +1,2 @@
|
||||||
|
DOMAIN=mcolonna.42.fr
|
||||||
DATABASE_PWD=SuperComplexDatabasePassword
|
DATABASE_PWD=SuperComplexDatabasePassword
|
4
Makefile
4
Makefile
|
@ -3,7 +3,7 @@ BUILD_PATH=__build/
|
||||||
DOCKER=docker
|
DOCKER=docker
|
||||||
MKTEMP=mktemp
|
MKTEMP=mktemp
|
||||||
|
|
||||||
DOMAIN=mcolonna.42.fr
|
include .env
|
||||||
|
|
||||||
SRC_COMPOSE=srcs/
|
SRC_COMPOSE=srcs/
|
||||||
SRC_WWW_MORE=srcs/www/
|
SRC_WWW_MORE=srcs/www/
|
||||||
|
@ -31,7 +31,7 @@ run : $(CERT_PATH_FILES)
|
||||||
|
|
||||||
echoo "Running '$(SRC_COMPOSE)'..."
|
echoo "Running '$(SRC_COMPOSE)'..."
|
||||||
cd -- $(SRC_COMPOSE)
|
cd -- $(SRC_COMPOSE)
|
||||||
$(DOCKER) compose up --build
|
DATABASE_PWD="$(DATABASE_PWD)" $(DOCKER) compose up --build
|
||||||
cd -
|
cd -
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,6 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- www:/www:ro
|
- www:/www:ro
|
||||||
- ./__cert:/cert:ro
|
- ./__cert:/cert:ro
|
||||||
# domainname: mcolonna.42.fr # TODO(vm) useful? # TODO(any)(nocopy)
|
|
||||||
|
|
||||||
wordpress:
|
wordpress:
|
||||||
build: ./requirements/wordpress
|
build: ./requirements/wordpress
|
||||||
|
|
|
@ -26,13 +26,12 @@ http {
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 443 ssl;
|
listen 443 ssl;
|
||||||
server_name mcolonna.42.fr; # TODO(any)(nocopy)
|
|
||||||
ssl_certificate /cert/cert.crt;
|
ssl_certificate /cert/cert.crt;
|
||||||
ssl_certificate_key /cert/cert.key;
|
ssl_certificate_key /cert/cert.key;
|
||||||
ssl_protocols TLSv1.3;
|
ssl_protocols TLSv1.3;
|
||||||
error_page 497 =301 /497.php;
|
error_page 497 =301 /497.php;
|
||||||
|
|
||||||
access_log /var/log/nginx/mcolonna.42.fr.access.log main;
|
access_log /var/log/nginx/access.log main;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
root /www;
|
root /www;
|
||||||
|
|
Loading…
Add table
Reference in a new issue