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
|
4
Makefile
4
Makefile
|
@ -3,7 +3,7 @@ BUILD_PATH=__build/
|
|||
DOCKER=docker
|
||||
MKTEMP=mktemp
|
||||
|
||||
DOMAIN=mcolonna.42.fr
|
||||
include .env
|
||||
|
||||
SRC_COMPOSE=srcs/
|
||||
SRC_WWW_MORE=srcs/www/
|
||||
|
@ -31,7 +31,7 @@ run : $(CERT_PATH_FILES)
|
|||
|
||||
echoo "Running '$(SRC_COMPOSE)'..."
|
||||
cd -- $(SRC_COMPOSE)
|
||||
$(DOCKER) compose up --build
|
||||
DATABASE_PWD="$(DATABASE_PWD)" $(DOCKER) compose up --build
|
||||
cd -
|
||||
|
||||
|
||||
|
|
|
@ -11,7 +11,6 @@ services:
|
|||
volumes:
|
||||
- www:/www:ro
|
||||
- ./__cert:/cert:ro
|
||||
# domainname: mcolonna.42.fr # TODO(vm) useful? # TODO(any)(nocopy)
|
||||
|
||||
wordpress:
|
||||
build: ./requirements/wordpress
|
||||
|
|
|
@ -26,13 +26,12 @@ http {
|
|||
|
||||
server {
|
||||
listen 443 ssl;
|
||||
server_name mcolonna.42.fr; # TODO(any)(nocopy)
|
||||
ssl_certificate /cert/cert.crt;
|
||||
ssl_certificate_key /cert/cert.key;
|
||||
ssl_protocols TLSv1.3;
|
||||
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 / {
|
||||
root /www;
|
||||
|
|
Loading…
Add table
Reference in a new issue