This commit is contained in:
4
deploy/cron.example
Normal file
4
deploy/cron.example
Normal file
@@ -0,0 +1,4 @@
|
||||
# Run daily at 03:15 server time.
|
||||
# Adjust paths to match your Linode checkout location.
|
||||
15 3 * * * cd /srv/fast-website && ./scripts/refresh.sh >> /var/log/fast-website-refresh.log 2>&1
|
||||
|
||||
14
deploy/nginx.conf
Normal file
14
deploy/nginx.conf
Normal file
@@ -0,0 +1,14 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name _;
|
||||
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
|
||||
# Static assets
|
||||
location / {
|
||||
# Serve directory index pages without requiring a trailing slash.
|
||||
# This fixes /videos (and similar) resolving to /videos/index.html.
|
||||
try_files $uri $uri/index.html $uri/ =404;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user