Athanasius
d644f468ef
Merge pull request #127 from BANTYC/enhancement/spring-boot-example
...
Enhancement/spring boot example
2021-07-19 12:03:52 +01:00
Athanasius
78edcffa6b
requirements: requests==2.25.1
2021-07-12 10:26:00 +00:00
Athanasius
88e199e94e
scripts/mysql dumps: Add data dump script
2021-07-10 12:26:44 +00:00
Athanasius
f02efdd98b
scripts/eddn-dump-db-schema: For dumping the current DB schema
2021-07-10 11:22:00 +00:00
Athanasius
ad56800822
Bouncer: Use Settings.py, and thus override files, rather than hard-coded
2021-07-10 10:30:05 +00:00
Athanasius
6e07d1fd64
start-eddn-service: That's bounceR & enforce it
...
* Bouncer, not bounce.
* Check the provided eddn service is a valid one.
2021-07-09 08:59:50 +00:00
Athanasius
d8ac2bc6b2
start-eddn-service: User $USER instead of hard-coded value
2021-07-09 08:44:27 +00:00
Athanasius
ffc07e92cf
start-eddn-service: Stricter checking for "is process already running?"
2021-07-09 08:41:57 +00:00
Athanasius
2ba0865d46
start-eddn-service: Add 'bounce' & ps
only on PID
...
* The ps options for filtering are logical OR, not AND, and there seems
to be no way to have them be ANDed instead.
2021-07-09 08:19:18 +00:00
Athanasius
579e185b86
Bouncer: Minor docs edit & remove un-needed Validator import
2021-07-08 20:37:41 +00:00
Athanasius
555c9dd813
Bouncer: Accept messages as if a Gateway, but then forward them to another
...
This is to be used during migration, running on the old host so as to
forward all messages to the new Gateway.
The destination is hard-coded in `LIVE_GATEWAY_URL`.
2021-07-08 12:16:50 +00:00
Athanasius
f968919029
systemd/start-eddn-service: Correct "is it actually running?" ps checks
...
Lack of '-p' meant it was just looking for ANY 'python' process, not on
that PID.
2021-07-08 11:49:14 +00:00
Athanasius
e82c241464
contrib/eddn-logs-archive: Optional --quiet arg
...
* Option --quiet arg to suppress no-error output.
* All the exit codes are in variables now.
2021-07-07 16:10:25 +00:00
Athanasius
fe245d598b
systemd/start-eddn-service: Fix redirect of errors to stderr
2021-07-07 14:18:23 +00:00
Athanasius
79d835616e
setup.py: Fix permissions on monitor/schemas after copy
...
In Python 2.7 shutil.copytree() *always* preserves the file mode. I
don't want to rely on changing them in the source as that's fragile.
So, write our own recursive function to fix them after the copy.
Once we move to Python 3 we can use the copy_function argument, combined
with the umask we already set.
2021-07-06 14:05:38 +00:00
Athanasius
e3053dc0b6
systemd: Updates for it to work with current paradigm
2021-07-06 13:29:29 +00:00
Athanasius
adc03e35c6
setup.py: Note why start-eddn-service is copied to per-env name
2021-07-06 13:21:01 +00:00
Athanasius
e424606504
systemd/start-eddn-service: errors to stderr, make logs/ and pre-check pid file
2021-07-06 13:06:45 +00:00
Athanasius
f0581d4350
setup.py: But eddn-logs-archive is still in contrib
2021-07-06 12:57:00 +00:00
Athanasius
cc6477d0f3
setup.py: systemd files under top level, not contrib/ now
2021-07-06 12:56:11 +00:00
Athanasius
474e0e694d
docs/Running: Correct virtualenv command to use env name
2021-07-06 12:49:29 +00:00
Athanasius
0c8a01fbbd
systemd/start-eddn-service: Also check for existing process for not-source
2021-07-06 12:45:38 +00:00
Athanasius
b1ceccd850
systemd/start-eddn-service: Check if process still exists
2021-07-06 11:52:43 +00:00
Athanasius
0e3ef098ab
systemd/start-eddn-service: Now replacing scripts/run-from-source.sh
...
* Removed scripts/run-from-source.sh as it's now redundant.
* Added `--background` optional argument, only for when using
`--from-source` to start-eddn-service. The script will leave the
service in the foreground, no output redirection, without it.
It tells you the PID of the process when it's backgrounded, as well as
placing it in the appropriate .pid file.
2021-07-06 11:17:52 +00:00
Athanasius
e049e2971b
systemd/start-eddn-service: Can now --from-source
...
* Also now stores PID in per-service file in configured logs directory.
* Swapped the environment arg and service so it's, e.g. "live gateway"
now.
* New optional third arg `--from-source` to... run from source, not
installed files. The script *will* exit and redirect output, but
record the PID and tell you it.
New SRC_DIR in the config files to know where to run from.
2021-07-06 10:44:44 +00:00
Athanasius
3116927b12
run-from-source: Moved into new ./scripts/ directory
2021-07-06 10:04:55 +00:00
Athanasius
4bfa81cde8
docs/Running: systemd files now in root rather than contrib/
2021-07-06 10:04:13 +00:00
Athanasius
478bf4060b
Move systemd scripts/files out of contrib into root
2021-07-06 10:03:31 +00:00
Athanasius
547ec2bc22
docs/Running: Section-ise the setup.py install section
...
* Moves the "you need to edit these files in the monitor" into a section
related to this, rather than up in #concepts.
2021-07-05 14:36:24 +00:00
Athanasius
8f36f8dcfe
contrib/run-from-source.sh: Fix up for the paths now used
2021-07-05 14:31:57 +00:00
Athanasius
50d7af3149
docs/Running: Catch up installation docs with current scripting
2021-07-05 14:16:08 +00:00
Athanasius
dd57ca3ac0
Merge pull request #124 from EDCD/enhancement/118/venv-and-setup.py
...
Generally get setup.py and docs into better shape
2021-07-05 14:53:49 +01:00
Athanasius
aa42aaf8b8
setup.py: Install the logs archivel script
2021-07-05 13:50:45 +00:00
Athanasius
1e9a5e6212
contrib: Rename logs-archive to eddn-logs-archive
2021-07-05 13:46:31 +00:00
Athanasius
f9cf414255
contrib: Log archival script
...
This will rotate to datetime stamped filenames (not a serial), and
compress. Will also only keep 28 days of logs at most.
2021-07-05 13:42:51 +00:00
Athanasius
1476ff824d
contrib/apache: Full, confirmed working, config
2021-07-05 12:56:25 +00:00
Athanasius
0bcb9cc545
docs/Running: Specify network/firewall config, correct some paths and ...
...
* <hr> between sections
* Document the ports that *must* be open to the internet.
* Apache will require the proxy_http module.
* Move the github clone earlier in instructions, as part of ensuring
paths exist when they should.
* Note about needing to do hostname and port substitutions in monitor
files if not using the standard values.
* Link to other sections where appropriate.
2021-07-05 12:52:50 +00:00
DaneliyaRI
6e3be0abc7
Removed unused dependencies
2021-07-05 10:42:41 +07:00
Athanasius
b1056c1239
contrib/run-from-source: Handle missing custom config
2021-07-03 14:02:35 +00:00
Athanasius
fcd316c7d4
docs/Running: Edit and expand LetsEncrypt section
2021-07-02 18:04:34 +00:00
Athanasius
de761f653b
contrib: Add LetsEncrypt example deploy script files
2021-07-02 17:34:29 +00:00
Athanasius
1df2fb749b
Relay: Add missing from bottle import ..., request, ...
2021-07-02 17:07:46 +00:00
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