4ndrs / pureryzen.io

Web App with Python as backend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PureRyzen.io

Web App using Python as backend.

PureRyzen is the hostname of the Linux box running the NGINX Unit application server. The box is running on an AMD Ryzen CPU (a Ryzen 7 3700X to be more specific), that is where the name originally came from. The domain name does not exist outside of my local network.

Configuration

The server uses TLS, create a bundle.pem with the cerficates, and push it to the server:

$ cat cert.pem ca.pem key.pem > bundle.pem
# curl -X PUT --data-binary @bundle.pem \
              --unix-socket /run/nginx-unit.sock http://localhost/certificates/bundle

After that, the configuration can be applied with the following:

# curl -X PUT --data-binary @config.json \
              --unix-socket /run/nginx-unit.sock http://localhost/config/

To apply changes after adding modifications to Django Apps, restart the application processes:

# curl -X GET --unix-socket /run/nginx-unit.sock \
              http://localhost/control/applications/PureRyzen/restart

Django Apps' static files need to be generated:

$ ./manage.py collectstatic

Screenshots

screen

1660900116106024

About

Web App with Python as backend

License:MIT License


Languages

Language:Python 78.6%Language:JavaScript 13.7%Language:HTML 7.6%