|
| 1 | +# Configuration file for application. |
| 2 | + |
| 3 | +#------------------------------------------------------------------------------ |
| 4 | +# Application(SingletonConfigurable) configuration |
| 5 | +#------------------------------------------------------------------------------ |
| 6 | + |
| 7 | +## This is an application. |
| 8 | + |
| 9 | +## The date format used by logging formatters for %(asctime)s |
| 10 | +#c.Application.log_datefmt = '%Y-%m-%d %H:%M:%S' |
| 11 | + |
| 12 | +## The Logging format template |
| 13 | +#c.Application.log_format = '[%(name)s]%(highlevel)s %(message)s' |
| 14 | + |
| 15 | +## Set the log level by value or name. |
| 16 | +#c.Application.log_level = 30 |
| 17 | +c.Application.log_level = 0 |
| 18 | + |
| 19 | +#------------------------------------------------------------------------------ |
| 20 | +# AnnouncementService(Application) configuration |
| 21 | +#------------------------------------------------------------------------------ |
| 22 | + |
| 23 | +## This is an application. |
| 24 | + |
| 25 | +## Config file to load |
| 26 | +#c.AnnouncementService.config_file = 'announcement_config.py' |
| 27 | + |
| 28 | +## Fixed message to show at the top of the page. |
| 29 | +# |
| 30 | +# A good use for this parameter would be a link to a more general live system |
| 31 | +# status page or MOTD. |
| 32 | +#c.AnnouncementService.fixed_message = '' |
| 33 | + |
| 34 | +## Generate default config file |
| 35 | +#c.AnnouncementService.generate_config = False |
| 36 | + |
| 37 | +## Logo path, can be used to override JupyterHub one |
| 38 | +#c.AnnouncementService.logo_file = '' |
| 39 | + |
| 40 | +## Port this service will listen on |
| 41 | +#c.AnnouncementService.port = 8888 |
| 42 | + |
| 43 | +## Announcement service prefix |
| 44 | +#c.AnnouncementService.service_prefix = '/services/announcement/' |
| 45 | + |
| 46 | +## Search paths for jinja templates, coming before default ones |
| 47 | +#c.AnnouncementService.template_paths = [] |
| 48 | + |
| 49 | +#------------------------------------------------------------------------------ |
| 50 | +# AnnouncementQueue(LoggingConfigurable) configuration |
| 51 | +#------------------------------------------------------------------------------ |
| 52 | + |
| 53 | +## File path where announcements persist as JSON. |
| 54 | +# |
| 55 | +# For a persistent announcement queue, this parameter must be set to a non-empty |
| 56 | +# value and correspond to a read+write-accessible path. The announcement queue |
| 57 | +# is stored as a list of JSON objects. If this parameter is set to a non-empty |
| 58 | +# value: |
| 59 | +# |
| 60 | +# * The persistence file is used to initialize the announcement queue |
| 61 | +# at start-up. This is the only time the persistence file is read. |
| 62 | +# * If the persistence file does not exist at start-up, it is |
| 63 | +# created when an announcement is added to the queue. |
| 64 | +# * The persistence file is over-written with the contents of the |
| 65 | +# announcement queue each time a new announcement is added. |
| 66 | +# |
| 67 | +# If this parameter is set to an empty value (the default) then the queue is |
| 68 | +# just empty at initialization and the queue is ephemeral; announcements will |
| 69 | +# not be persisted on updates to the queue. |
| 70 | +#c.AnnouncementQueue.persist_path = '' |
| 71 | +c.AnnouncementQueue.persist_path = 'announcements.json' |
| 72 | + |
0 commit comments