Skip to content

Instantly share code, notes, and snippets.

@ArseniyShestakov
Last active June 14, 2022 03:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ArseniyShestakov/36dac6e18f717605ff93ff7fa2b3c670 to your computer and use it in GitHub Desktop.
Save ArseniyShestakov/36dac6e18f717605ff93ff7fa2b3c670 to your computer and use it in GitHub Desktop.
VCMI daily builds Nginx config
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="viewport" content="width=device-width"/>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<style type="text/css">
body,html {background:#fff;font-family:"Bitstream Vera Sans","Lucida Grande","Lucida Sans Unicode",Lucidux,Verdana,Lucida,sans-serif;}
tr:nth-child(even) {background:#f4f4f4;}th,td {padding:0.1em 0.5em;}th {text-align:left;font-weight:bold;background:#eee;border-bottom:1px solid #aaa;}
#list {border:1px solid #aaa;width:100%;}a {color:#a33;}a:hover {color:#e33;}
</style>
<title>VCMI daily builds</title>
</head><body>
<h1>Daily builds for <a href="https://github.com/vcmi/vcmi">VCMI</a> via <a href="http://wiki.vcmi.eu/index.php?title=How_to_build_VCMI_(Linux/Cmake/MXE)">MXE</a></h1>
<p><b>Please do not hotlink files since old ones eventually removed!</b><br>
Instead use links to directory listing:<br>
<a href="http://vcmi.arseniyshestakov.com/windows/">http://vcmi.arseniyshestakov.com/windows/</a></p>
<h1>Index of
server {
listen 80;
root /home/vcmibuilds/web;
index index.html index.htm;
server_name vcmi.arseniyshestakov.com;
location ~ .7z$ {
valid_referers none blocked vcmi.arseniyshestakov.com;
if ($invalid_referer) {
rewrite (.*) / redirect;
}
}
location / {
fancyindex on;
fancyindex_ignore HEADER.html FOOTER.html;
fancyindex_header /HEADER.html;
fancyindex_footer /FOOTER.html;
fancyindex_exact_size on;
fancyindex_default_sort date_desc;
error_page 404 = @toindex;
}
location @toindex {
rewrite .* / redirect;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment