Skip to content

Commit

Permalink
Add placeholder for empty projects
Browse files Browse the repository at this point in the history
  • Loading branch information
roelofr committed Nov 21, 2023
0 parents commit 64c3799
Show file tree
Hide file tree
Showing 12 changed files with 7,868 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/dist/
/node_modules/
.parcel-cache
5 changes: 5 additions & 0 deletions .postcssrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"plugins": {
"tailwindcss": {}
}
}
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Gumbo's Not Available pages

Simple pages using the Gumbo Tailwind branding to display that sites are offline.

## Usage

1. `git clone https://github.com/gumbo-misc/not-available.git`
2. `npm install`
3. `npm run build`

Done!

See [nginx.conf](./nginx.conf) for an example nginx config.

## License

No license yet, all rights reserved.
21 changes: 21 additions & 0 deletions nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
server {
listen 80;
server_name example.com;

root /var/www/unavailable;
index index.html;

# Use index.html as the error page
error_page 404 /index.html;

# Disallow access to hidden files
location ~ /\.ht {
deny all;
}

# Add immutable cache headers to hashed css, js and svg files
location ~* \.([a-f0-9]{8})\.(?:css|js|svg)$ {
expires 1y;
add_header Cache-Control "public, immutable";
}
}
Loading

0 comments on commit 64c3799

Please sign in to comment.