diff options
| author | Sadeep Madurange <sadeep@asciimx.com> | 2025-11-01 09:46:52 +0800 |
|---|---|---|
| committer | Sadeep Madurange <sadeep@asciimx.com> | 2025-11-01 09:46:52 +0800 |
| commit | 9f938ab8ba5af561bd44dbc7142f338ce317a01a (patch) | |
| tree | 7104ce2ac9456c5895f752eff26bad31f8436978 /README.txt | |
| download | etlas-9f938ab8ba5af561bd44dbc7142f338ce317a01a.tar.gz | |
Etlas project.
Diffstat (limited to 'README.txt')
| -rw-r--r-- | README.txt | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/README.txt b/README.txt new file mode 100644 index 0000000..1067427 --- /dev/null +++ b/README.txt @@ -0,0 +1,21 @@ +SERVER.FCGI + +The server.fcgi file contains the server code for Atlas. Follow the steps below +to deploy Atlas to an OpenBSD server using httpd. + + 1. Install flask, flup, and requests Python packages. + 2. Create directory /var/www/etlas with server.fcgi and tickers.txt. + 3. Set the POLYGON_API_KEY environment variable. + 4. Change ownership of /var/www/run temporarily (to create etlas.sock): + # chown -R www:www /var/www/run + 5. Start FastCGI server: $ doas -u www nohup python3 server.fcgi & + 6. Restore ownership of /var/www/run: + # chown -R root:daemon /var/www/run + 7. Configure httpd (see scripts/httpd.conf for a template). + 8. Create API user: + # mkdir /var/www/htdocs/etlas + # htpasswd /var/www/htdocs/etlas/.htpasswd <username> + 9. Set permissions for .htpasswd: + # chown www:www /var/www/htdocs/etlas/.htpasswd + # chmod u-w /var/www/htdocs/etlas/.htpasswd + 10. Start httpd: # rcctl -f start httpd |
