522 Commits

Author SHA1 Message Date
Athanasius
1e9edf94f7 Relay: app.-ise and CORS-ise
* Use the "make an explicit Bottle() and use it" change.
* Use app.route with OPTIONS in method= list.
* Remove extraneous setting of Access-Control-Allow-Origin header.
2021-07-02 17:02:53 +00:00
Athanasius
9359b78301 Gateway: Correct methodS to singular & remove extraneous header
* methods != method
* There shouldn't be any need to manually set
  Access-Control-Allow-Origin headers now.
2021-07-02 17:02:07 +00:00
Athanasius
a8b3fc33e1 Monitor: Forgot the app.install(EnableCors()) 2021-07-02 16:57:06 +00:00
Athanasius
1feb7c2dee Monitor: Converted to app. including CORS handler 2021-07-02 16:54:37 +00:00
Athanasius
2eb8a9fb88 Gateway: Implement a CORS plugin for all routes
* Switches all of the routes to use .route(..., method=[...]) so as to
  include OPTIONS as well as either POST or GET.
2021-07-02 16:32:19 +00:00
Athanasius
c72f583476 beta: Support in systemd start-eddn-service script 2021-07-02 14:17:21 +00:00
Athanasius
a340b027fc beta: Add systemd config 2021-07-02 14:16:36 +00:00
Athanasius
1804799507 setup: Use setup_env.py for per-environment settings 2021-07-02 14:12:43 +00:00
Athanasius
2a4f8488cd Remove setup.cfg from git, to avoid merges over-writing any per-env changes
The hope is this can be used to easily switch between live, beta and dev
for setup.py without worrying that a git merge will suddenly turn beta
into dev, or live into beta or dev.
2021-07-02 13:55:25 +00:00
Athanasius
096ccab9fb docs/Running: Outline for using Apache 2021-07-01 17:30:48 +00:00
Athanasius
7684cec4d5 .gitignore: VIM swap files 2021-07-01 17:30:37 +00:00
Athanasius
4e343fe444 docs/running: a start on apache config 2021-07-01 18:11:13 +01:00
Athanasius
8add1a4409 Merge branch 'enhancement/118/venv-and-setup.py' of github.com:EDCD/EDDN into enhancement/118/venv-and-setup.py 2021-07-01 18:10:12 +01:00
Athanasius
086493b5bf Make it possible to split dev and live installs
* Have 'dev' and 'live' components to many paths and file names.
* Have separate dev/live systemd start script configs.
* Have the systemd start script take a dev/live second argument.
* Try to ensure permissions on 'web' files by explicitly setting umask.
2021-07-01 16:52:25 +00:00
Athanasius
451b93db1d docs/Running: Correct placement of "Reverse Proxy with nginx" section 2021-07-01 15:41:44 +01:00
Athanasius
2c06b8e79e systemd: start script - exec the python 2021-06-14 17:34:34 +01:00
Athanasius
f98809fd2e systemd: Correct AssertPathExists to python venv 2021-06-14 17:32:13 +01:00
Athanasius
d16e222a99 docs/Running: Mandate the python venv installation
Let's stop guessing at how the reader wants to do it and just *tell*
them how to do it instead.

Python virtual environment, done.
2021-06-14 17:12:43 +01:00
Athanasius
db7b69473b docs/: Add example override config file 2021-06-14 17:12:28 +01:00
Athanasius
6bc7d3042d contrib/init.d: Tweak DAEMON setting for python venv install 2021-06-14 17:08:47 +01:00
Athanasius
c6db4b2733 docs/Running: ${HOME} not ~ / python venv un-versioned symbolic link
* Let's stick with Bourne Shell, not BASH-isms.
* If we make everything use ~/eddn/python-venv symbolic link then
there's less to update in the future.
2021-06-14 16:52:04 +01:00
Athanasius
b58acec1c9 setup.py: Call out what we're doing in these extra steps 2021-06-14 16:45:41 +01:00
Athanasius
e8c1e3b03a setup.py: Ensure CWD is as expected & copy example config if needs be 2021-06-14 16:42:02 +01:00
Athanasius
548f7c3cb3 setup.py: Get 'extra' files in place - monitor, schemas, systemd files
* 'monitor' files are for the web page showing status/stats.
* 'schema' files are a publically available copy of the schemas in-use.
* 'systemd' files are the start-<service> script and its config file.
2021-06-14 16:30:11 +01:00
Athanasius
152bd86818 setup.py: A little reformatting for readability 2021-06-14 15:55:49 +01:00
Athanasius
4c2f379480 contrib/systemd: Adjusted service file and script for python venv 2021-06-14 15:52:39 +01:00
Athanasius
415f5bb17d systemd: Change to a single script for starting services
* Pass the EDDN service to be started as $1.
* eddn_config now defines a python venv activate script to use.
* And this new central script uses that.
2021-06-14 15:22:58 +01:00
Athanasius
165a00599f docs/Running: We should use a python venv 2021-06-14 15:15:10 +01:00
Athanasius
4edb1e7e21 setup.py: Comment about schemas only being for code, not website 2021-06-14 15:01:07 +01:00
Athanasius
f033b3621b setup.py: Pin versions of install_requires packages
Yes, I know that:

<https://packaging.python.org/discussions/install-requires-vs-requirements/>

says not to do this in install_requires.  But there's at least the issue
of pyzmq's later versions just not working with python 2.7.

These are the versions we *know* work currently.
2021-06-14 14:53:54 +01:00
Athanasius
d185618d57 setup.py: Update author and URL
edcd@miggy.org is a placeholder, can be tweaked by Athanasius to
anything required.
2021-06-14 14:43:24 +01:00
Athanasius
04b28b61c0
Merge pull request #122 from EDCD/fix/118/schemaTodayYesterday-typo
monitor: Fix typo of schemasTodayYesterday with its 's' on 'schemas'
2021-06-14 13:01:39 +01:00
Athanasius
d1159b6bbd
Merge pull request #117 from EDCD/enhancement/from-scratch-docs
Document how to run EDDN from scratch
2021-06-14 13:01:26 +01:00
Athanasius
80a858fb26 monitor: Fix typo of schemasTodayYesterday with its 's' on 'schemas' 2021-06-14 12:47:54 +01:00
Athanasius
5dc0e345fa docs/Running-this-software: Call out contrib/systemd 2021-06-14 12:33:14 +01:00
Athanasius
61bf062e9c Add example systemd unit files, and supporting files. 2021-06-14 12:27:21 +01:00
Athanasius
c383d97fee docs: Basic instructions on putting existing LetsEncrypt cert files in place 2021-06-04 15:24:40 +01:00
Athanasius
adaa6822f0 docs: Add some information from the VPS Anthor has been using. 2021-06-04 14:22:14 +01:00
Athanasius
423a9a23ee
Merge pull request #121 from BANTYC/enhancement/es-6-node-example
Minor Node.js example enhancement
2021-05-26 10:11:15 +01:00
BANTYC
2d2a02265f * Added semicolons
* Added ES6 imports
* Added package-lock.json
* Added module definition at package.json
2021-05-25 23:51:39 +07:00
Athanasius
e47b3e4021 docs/Running: Correct and clarify the Apache Proxy examples. 2021-05-19 11:32:42 +01:00
Athanasius
c5070c7754 docs/Running: Be explicit about the mysql password use 2021-05-19 11:28:03 +01:00
Athanasius
ad236365f8 docs/running: Add dpkg output of the tested VM.
The debian-vm-dpkg_-l.txt is likely the most useful as it includes the
exact versions of the packages.  This might help resolve any "uh,
doesn't work on *my* system" conundrums.
2021-05-17 08:25:34 +01:00
Athanasius
5f12722c9f docs/running: Order steps more logically.
* Also adds some minimal Apache guidance for Reverse Proxy setup.
2021-05-16 20:59:03 +01:00
Athanasius
ae4f54b608 docs/running: Move DB init after DB install/setup
* Also we might as well make examples clearer by assuming
  `~/eddn/dev/EDDN/` for the git clone.
2021-05-16 20:47:34 +01:00
Athanasius
f195a53872 docs/running: Detail the ports each process uses and why. 2021-05-16 20:45:03 +01:00
Athanasius
7dce35d442 docs/running: expand/correct/improve iptables rules for VM testing 2021-05-16 20:30:53 +01:00
Athanasius
a64ca249d1 docs/running: Add section on needing to search/replace monitor files 2021-05-16 20:27:56 +01:00
Athanasius
66bb88abca docs/running: cp -r not cp -p 2021-05-16 19:31:10 +01:00
Athanasius
e12f6f1f70 docs/running: Init SQL schema & port 9091 also needs forwarding to VM 2021-05-16 18:09:57 +01:00