Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Task #3228 (closed)

Opened 14 years ago

Closed 14 years ago

Bye-bye custom_settings

Reported by: cxallan Owned by: cxallan
Priority: minor Milestone: OMERO-Beta4.2.1
Component: General Version: n.a.
Keywords: n.a. Cc:
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: 0.0d
Sprint: 2010-11-11 (19)

Description

Remove custom_settings.py in favor of reading properties from bin/omero config's etc/grid/config.xml file.

Change History (11)

comment:1 Changed 14 years ago by cxallan

  • Owner set to cxallan
  • Status changed from new to assigned

comment:2 Changed 14 years ago by cxallan

(In [8471]) Cleaned up a lot of cruft surrounding OMERO.web configuration:

  • Initial version using bin/omero config (See #3228)
  • bin/omero web config apache implementation (See #3220)

comment:3 Changed 14 years ago by cxallan

(In [8475]) Fix EMAIL_USE_TLS option. (See #3228)

comment:4 Changed 14 years ago by cxallan

New properties for bin/omero config:

  • omero.web.debug ('True' / 'False') -- Turns OMERO.web debugging on/off
  • omero.web.admins (Administrator details [JSON]; see example below) -- Sets administrator notifications
    $ bin/omero config set omero.web.admins '(("Dave", "dave@example.com"), ("Bob", "bob@example.com"))'
    $ bin/omero config get
    omero.web.admins=(("Dave", "dave@example.com"), ("Bob", "bob@example.com"))
    
  • omero.web.cache_backend (Django cache backend) -- http://docs.djangoproject.com/en/dev/topics/cache/
  • omero.web.use_eman2 ('True' / 'False') -- Performs an EMAN2 import if enabled
  • omero.web.server_list (OMERO server details [JSON]; see example below)
    $ bin/omero config set omero.web.server_list '(("prod.a.com", 4064, "prod"), ("dev.a.com", 4064, "dev"))'
    $ bin/omero config get
    omero.web.server_list=(("prod.a.com", 4064, "prod"), ("dev.a.com", 4064, "dev"))
    
  • omero.web.email_host (Mail server hostname)
  • omero.web.email_host_user (Mail server login username)
  • omero.web.email_host_password (Mail server login password)
  • omero.web.email_host_port (Mail server port)
  • omero.web.email_subject_prefix (Subject prefix for sent e-mail)
  • omero.web.email_use_tls ('True' / 'False') -- Enabled or disables TLS when sending e-mail
  • omero.web.server_email (From: address to be used when sending e-mail)
  • omero.web.application_host (Target bind URL for the OMERO.web install)
  • omero.web.application_server ('fastcgi', 'fastcgi-tcp' or 'development') -- Django deployment target server
  • omero.web.application_server_host (TCP bind address for the target server)
  • omero.web.application_server_port (TCP bind port for the target server)

comment:5 Changed 14 years ago by atarkowska

omero.web.logdir ('Directory/to/my/logdir') -- specify directory for logs other the var/log

comment:6 Changed 14 years ago by cxallan

(In [8476]) Fix issue with log directory creation and added 'omero.web.logdir' configuration option. (See #3228)

comment:7 Changed 14 years ago by cxallan

(In [8477]) Fixing typo in r8476. (See #3228)

comment:8 Changed 14 years ago by cxallan

(In [8478]) Better JSON parsing error handling. (See #3228)

comment:9 Changed 14 years ago by cxallan

Proper JSON:

  • bin/omero config set omero.web.admins '[["Dave", "dave@example.com"], ["Bob", "bob@example.com"]]'
  • bin/omero config set omero.web.server_list '[["prod.a.com", 4064, "prod"], ["dev.a.com", 4064, "dev"]]'

comment:10 Changed 14 years ago by jmoore

(In [8482]) Refactoring configurations into CUSTOM_SETTINGS_MAPPINGS (See #3228)

Having a declaration of the various keys which are accessed allows
for printing out what the current settings are (see bin/omero web -h)

Also fixes an issue with "web config --http" and a typo in the keys.

comment:11 Changed 14 years ago by cxallan

  • Remaining Time changed from 0.5 to 0
  • Resolution set to fixed
  • Status changed from assigned to closed

(In [8508]) Various FastCGI and settings changes:

  • Merged patch from Josh (Fixes #3216)
  • Added a final configuration option, omero.web.session_engine (Fixes #3228)
Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.66192 sec.)

We're Hiring!