Actions
Maintaining static websites on staticweb » History » Revision 4
« Previous |
Revision 4/8
(diff)
| Next »
Ahmed Bilal, 04/29/2020 09:33 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 under /etc/nginx/sites-enabled/staticcms-staging.ungleich.ch
#
# 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 · 4 revisions