[5ec3a0b] | 1 | # |
---|
| 2 | # OpenWorkouts ZEO configuration file |
---|
| 3 | # |
---|
| 4 | |
---|
| 5 | # Defines the base path for files referenced in this configuration file |
---|
[9b2228b] | 6 | # The default value works when loading the configuration file from the |
---|
[5ec3a0b] | 7 | # root directory of the OpenWorkouts repo. Adjust it as needed |
---|
| 8 | %define INSTANCE . |
---|
| 9 | |
---|
| 10 | <zeo> |
---|
| 11 | # Use only one address value! |
---|
| 12 | # Accept local (unix socket) connections only: |
---|
| 13 | address $INSTANCE/var/zeo/zeo.sock |
---|
| 14 | # Accept tcp/ip connections on localhost port 9999: |
---|
| 15 | # address localhost:9999 |
---|
| 16 | # Accept tcp/ip connections on all addresses, port 9999: |
---|
| 17 | # address 0.0.0.0:9999 |
---|
| 18 | |
---|
| 19 | # monitor address |
---|
[9b2228b] | 20 | #monitor-address $INSTANCE/var/zeo/zeo-monitor.sock |
---|
| 21 | # monitor-address localhost:8104 |
---|
[5ec3a0b] | 22 | |
---|
| 23 | # read only instance (true/false) |
---|
| 24 | read-only false |
---|
| 25 | |
---|
[9b2228b] | 26 | # ??? |
---|
| 27 | invalidation-queue-size 100 |
---|
[5ec3a0b] | 28 | |
---|
| 29 | # path to the pid file |
---|
| 30 | pid-filename $INSTANCE/var/zeo/zeo.pid |
---|
| 31 | </zeo> |
---|
| 32 | |
---|
| 33 | <eventlog> |
---|
| 34 | level info |
---|
| 35 | <logfile> |
---|
| 36 | path $INSTANCE/var/zeo/zeo.log |
---|
| 37 | </logfile> |
---|
| 38 | </eventlog> |
---|
| 39 | |
---|
| 40 | <blobstorage 1> |
---|
| 41 | <filestorage> |
---|
| 42 | # path to the ZODB storage file |
---|
| 43 | path $INSTANCE/var/zeo/Data.fs |
---|
| 44 | </filestorage> |
---|
| 45 | # path to the directory to store binary objects/files |
---|
| 46 | blob-dir $INSTANCE/var/zeo/blobs |
---|
| 47 | </blobstorage> |
---|
| 48 | |
---|
| 49 | <runner> |
---|
| 50 | # sets the way to start this ZEO server instance when running zeoctl |
---|
[9b2228b] | 51 | # IMPORTANT: This contains hardcoded paths, that's why it it is so |
---|
[5ec3a0b] | 52 | # important to call zeo_start and zeo_stop from the proper place |
---|
| 53 | # |
---|
| 54 | # the path to runzeo should be correctly set by the virtualenv |
---|
| 55 | program runzeo -C $INSTANCE/etc/zeo.conf |
---|
| 56 | |
---|
| 57 | # client socket name (used by zeoctl to interact with the zeo instance) |
---|
| 58 | socket-name $INSTANCE/var/zeo/zdsock |
---|
| 59 | |
---|
| 60 | # Use this to force the ZEO server instance to be running as a given |
---|
| 61 | # user. |
---|
| 62 | # user openworkouts |
---|
| 63 | |
---|
| 64 | # daemonize, fork into the background properly |
---|
| 65 | daemon true |
---|
| 66 | |
---|
| 67 | # ???? |
---|
| 68 | # default-to-interactive false |
---|
| 69 | |
---|
| 70 | # Keep running no matter the error that could arise |
---|
| 71 | forever true |
---|
| 72 | |
---|
| 73 | # ???? |
---|
| 74 | backoff-limit 1000 |
---|
| 75 | </runner> |
---|