<commit_before>ssh -i ./projects.pem ec2-user@172.16.58.3

set up error pages

set up redirects for randomcolor and typewriter and other projects

write short guide for deploying new projects

work out how to cache properly

add proxying feature

server {
    listen       8000;
    server_name tuuuune.localhost tuuune.com;
    root /var/www/llllll/sites/tuuune/public;
    error_page   403  = @proxy;
    try_files $uri index.html $uri/ @proxy;
    location @proxy {
        proxy_pass http://localhost:8080;
    }
}


http {

     open_file_cache max=1000 inactive=300s;
     open_file_cache_valid 360s;
     open_file_cache_min_uses 2;
     open_file_cache_errors off;
}

if ($http_cf_visitor ~ '{"scheme":"http"}') {
    return 301 https://$server_name$request_uri;
}

gzip  on;
gzip_min_length 1000;
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;<commit_msg>update to do<commit_after>set up error pages

write short guide for deploying new projects

work out how to cache properly... nginx

move big file downloads to s3

## useful snippets

ssh -i ./projects.pem ec2-user@172.16.58.3

http {

     open_file_cache max=1000 inactive=300s;
     open_file_cache_valid 360s;
     open_file_cache_min_uses 2;
     open_file_cache_errors off;
}

if ($http_cf_visitor ~ '{"scheme":"http"}') {
    return 301 https://$server_name$request_uri;
}

gzip  on;
gzip_min_length 1000;
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
{'fraction_non_alphanumeric': 0.08943089430894309, 'fraction_numerical': 0.04127579737335835, 'mean_word_length': 3.8929663608562692, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 1, 'xml': 6}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2419891', 'n_tokens_mistral': 588, 'n_tokens_neox': 523, 'n_words': 143}