Compare commits

..

3 Commits

Author SHA1 Message Date
Rob Kelly 80ec8573a5 Added nginx config 2024-12-03 18:23:30 -07:00
Rob Kelly 424daf2baf Added README 2024-12-03 18:23:18 -07:00
Rob Kelly 060a140191 Moved www data to subdirectory 2024-12-03 18:18:31 -07:00
25 changed files with 51 additions and 0 deletions

3
README Normal file
View File

@ -0,0 +1,3 @@
# web
This content is live at https://intrusive.games

48
nginx/intrusive Normal file
View File

@ -0,0 +1,48 @@
# nginx configuration for intrusive.games
server {
root /var/www/intrusive;
index index.html index.htm;
server_name intrusive.games www.intrusive.games;
# Should have been added by certbot but wasnt?
listen 443 ssl;
ssl_certificate /etc/letsencrypt/live/intrusive.games/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/intrusive.games/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
# Add 1 day expires header for static assets
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
expires 1d;
}
location / {
# First attempt to serve request as file, then
# as directory, then fall back to redirecting to index.html
try_files $uri $uri/ @root;
}
# If nginx can't find a file, fallback to the homepage.
location @root {
rewrite .* / redirect;
}
}
server {
if ($host = intrusive.games) {
return 301 https://$host$request_uri;
}
server_name intrusive.games www.intrusive.games;
listen 80;
return 404;
}
server {
server_name discord.intrusive.games;
listen 80;
return 301 https://discord.gg/9ArMrDDUgA;
}

View File

Before

Width:  |  Height:  |  Size: 6.1 KiB

After

Width:  |  Height:  |  Size: 6.1 KiB

View File

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

Before

Width:  |  Height:  |  Size: 1.0 MiB

After

Width:  |  Height:  |  Size: 1.0 MiB

View File

Before

Width:  |  Height:  |  Size: 960 KiB

After

Width:  |  Height:  |  Size: 960 KiB

View File

Before

Width:  |  Height:  |  Size: 654 KiB

After

Width:  |  Height:  |  Size: 654 KiB

View File

Before

Width:  |  Height:  |  Size: 511 KiB

After

Width:  |  Height:  |  Size: 511 KiB