<commit_before># sudo vim /etc/systemd/system/flaskproj.service
[Unit]
Description=uWSGI instance to serve flaskproj
After=network.target

[Service]
User=ubuntu
Group=www-data
WorkingDirectory=/home/ubuntu/cs207project/metadata
Environment='PATH=/home/ubuntu/venvs/flaskproj/bin'
ExecStart=/home/ubuntu/venvs/flaskproj/bin/uwsgi --ini flaskproj.ini

[Install]
WantedBy=multi-user.target


# sudo vim /etc/nginx/sites-available/flaskproj
server {
    listen 80;
    server_name server_domain_or_IP;
    
    root /home/ubuntu/www/html;

    location = / {
        try_files $uri $uri/ =404;
    }

    location / {
        include uwsgi_params;
        uwsgi_pass unix:/home/ubuntu/cs207project/metadata/flaskproj.sock;
    }
}
<commit_msg>nginx now hosts both static and from api<commit_after># sudo vim /etc/systemd/system/flaskproj.service
[Unit]
Description=uWSGI instance to serve flaskproj
After=network.target

[Service]
User=ubuntu
Group=www-data
WorkingDirectory=/home/ubuntu/cs207project/metadata
Environment='PATH=/home/ubuntu/venvs/flaskproj/bin'
ExecStart=/home/ubuntu/venvs/flaskproj/bin/uwsgi --ini flaskproj.ini

[Install]
WantedBy=multi-user.target


# sudo vim /etc/nginx/sites-available/flaskproj
server {
    listen 80;
    server_name server_domain_or_IP;

    root /home/ubuntu/www/html;

    location = / {
        try_files $uri $uri/index.html $uri/ =404;
    }


    location /files {
        try_files $uri $uri/index.html $uri/ =404;
    }

    location /css {
        try_files $uri $uri/ =404;
    }

    location /js {
        try_files $uri $uri/ =404;
    }

    location /index.html {
        try_files $uri $uri/index.html $uri/ =404;
    }

    location / {
        include uwsgi_params;
        uwsgi_pass unix:/home/ubuntu/cs207project/metadata/flaskproj.sock;
    }
}
{'fraction_non_alphanumeric': 0.11634349030470914, 'fraction_numerical': 0.018836565096952907, 'mean_word_length': 3.1045454545454545, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2344889', 'n_tokens_mistral': 718, 'n_tokens_neox': 623, 'n_words': 116}