Compare commits
No commits in common. "80ec8573a5c37706b15a8c42c7354b54846288e7" and "0c381e67e573f24ac6392009a1fbca2d16f2decb" have entirely different histories.
80ec8573a5
...
0c381e67e5
Before Width: | Height: | Size: 6.1 KiB After Width: | Height: | Size: 6.1 KiB |
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 1.0 MiB After Width: | Height: | Size: 1.0 MiB |
Before Width: | Height: | Size: 960 KiB After Width: | Height: | Size: 960 KiB |
Before Width: | Height: | Size: 654 KiB After Width: | Height: | Size: 654 KiB |
Before Width: | Height: | Size: 511 KiB After Width: | Height: | Size: 511 KiB |
|
@ -1,48 +0,0 @@
|
|||
# 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;
|
||||
}
|