Browse Source

manage sub-domain of static site with .env file instead of environment variable

Guillaume Virlet 6 years ago
parent
commit
7899b2845a
1 changed files with 3 additions and 3 deletions
  1. 3 3
      static/README.md

+ 3 - 3
static/README.md

@@ -3,8 +3,8 @@
 ## Configure
 To serve a static site for `changeme.domain.tld`:
 ```
-export CHATONS_STATIC_SITE=changeme
-export CHATONS_DOMAIN=domain.tld
+echo CHATONS_STATIC_SITE=changeme >> .env
+echo CHATONS_DOMAIN=domain.tld >> .env
 ```
 
 ## Deploy
@@ -17,7 +17,7 @@ You just need to copy your static site content to:
 /srv/chatons/static/changeme
 ```
 
-Then ensure that root have read access to the files in `/srv/chatons/static/changeme`
+Then ensure that read access to /srv/chatons/static/changeme files and folders is given to everybody as the nginx user needs to see them
 
 Now you have a static site at URL `changeme.localhost` or `changeme.${CHATONS_DOMAIN}`