Actions
Maintaining static websites on staticweb » History » Revision 3
« Previous |
Revision 3/8
(diff)
| Next »
Ahmed Bilal, 04/29/2020 09:32 AM
Maintaining static websites on staticweb¶
Work In Progress¶
1. Add DNS Entry under dot-cdist/files/dns/zones/ungleich.ch
staticcms-staging CNAME staticweb
2. Run the following command on control server.
cd ~/.cdist; git pull; cdist config -bj7 -p9 -vv d{1..7}.ungleich.ch
3. Run the following command on staticweb.ungleich.ch
mkdir -p /home/services/www/ungleichstatic/staticcms-staging.ungleich.ch/www/u/
4. Create nginx config for the site
#
# Manually created
#
server {
# Only bind on the reserved IP address(es)
listen [::]:443;
listen *:443;
ssl on;
ssl_certificate /etc/letsencrypt/live/staticcms-staging.ungleich.ch/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/staticcms-staging.ungleich.ch/privkey.pem;
server_name staticcms-staging.ungleich.ch;
index index.html index.htm;
location / {
root /home/services/www/ungleichstatic/staticcms-staging.ungleich.ch/www;
}
access_log /home/services/www/ungleichstatic/staticcms-staging.ungleich.ch/logs/access.log;
}
Updated by Ahmed Bilal over 4 years ago · 3 revisions