Skip to content

Commit

Permalink
Fix comments about WEBUI_USER
Browse files Browse the repository at this point in the history
  • Loading branch information
ptormene committed Jan 8, 2025
1 parent 61b9c8d commit 77ec451
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 33 deletions.
19 changes: 10 additions & 9 deletions openquake/server/local_settings.py.aelo_aristotle
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,16 @@ DISABLE_VERSION_WARNING = True

ARISTOTLE_DEFAULT_USGS_ID = ''

# # Static Folder
# STATIC_ROOT = ''
# By default it is 'openquake'
# WEBUI_USER =

# Folder STATIC_ROOT is the full, absolute path to your static files folder.
# Furthermore, the user WEBUI_USER must own that directory.
STATIC_ROOT = '/var/www/webui'

# Configure the directory to store the server user access log
# Furthermore, the user WEBUI_USER must own that directory.
WEBUI_ACCESS_LOG_DIR = '/var/log/oq-engine'

# WEBUI config uncomment and set properly if needed
# WEBUIURL = 'http://localhost:8800/'
Expand Down Expand Up @@ -37,13 +45,6 @@ SERVER_NAME = <localhost>
# values
USE_REVERSE_PROXY = <True|False>

# By default it is 'openquake'
# WEBUI_USER =

# Configure the directory to store the server user access log
# Furthermore, the user WEBUI_USER must own that directory.
WEBUI_ACCESS_LOG_DIR = '/var/log/oq-engine'

# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
# although not all choices may be available on all operating systems.
Expand Down
19 changes: 11 additions & 8 deletions openquake/server/local_settings.py.pam
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,17 @@ AUTHENTICATION_BACKENDS += (
'django_pam.auth.backends.PAMBackend',
)

#Static Folder
# By default it is 'openquake'
# WEBUI_USER =

# Folder STATIC_ROOT is the full, absolute path to your static files folder.
# Furthermore, the user WEBUI_USER must own that directory.
STATIC_ROOT = '/var/www/webui'

# Configure the directory to store the server user access log
# Furthermore, the user WEBUI_USER must own that directory.
WEBUI_ACCESS_LOG_DIR = '/var/log/oq-engine'

# WEBUI config uncomment and set properly if needed
# WEBUIURL = 'http://localhost:8800/'

Expand All @@ -29,13 +37,6 @@ STATIC_ROOT = '/var/www/webui'
# enable WEBUI_PATHPREFIX to place webui pages below a specific path
# WEBUI_PATHPREFIX='/path/prefix'

# By default it is 'openquake'
# WEBUI_USER =

# Configure the directory to store the server user access log
# Furthermore, the user WEBUI_USER must own that directory.
WEBUI_ACCESS_LOG_DIR = '/var/log/oq-engine'

# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
# although not all choices may be available on all operating systems.
Expand All @@ -45,3 +46,5 @@ WEBUI_ACCESS_LOG_DIR = '/var/log/oq-engine'

# This is reasonable in an internal installation, otherwise set it to False
DEBUG = True

SUPPRESS_PERMISSION_DENIED_WARNINGS = True
18 changes: 10 additions & 8 deletions openquake/server/local_settings.py.server
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,17 @@ APPLICATION_MODE = 'RESTRICTED'
# Disable sharing of results across users
ACL_ON = True

# By default it is 'openquake'
# WEBUI_USER =

# Folder STATIC_ROOT is the full, absolute path to your static files folder.
# Furthermore, the user `openquake` must own that directory.
# Furthermore, the user WEBUI_USER must own that directory.
STATIC_ROOT = '/var/www/webui'

# Configure the directory to store the server user access log
# Furthermore, the user WEBUI_USER must own that directory.
WEBUI_ACCESS_LOG_DIR = '/var/log/oq-engine'

# WEBUI config uncomment and set properly if needed
# WEBUIURL = 'http://localhost:8800/'

Expand All @@ -17,13 +24,6 @@ STATIC_ROOT = '/var/www/webui'
# the path must start with ``/`` and ending without it (e.g. ``'/path/prefix'``)
# WEBUI_PATHPREFIX='/path/prefix'

# By default it is 'openquake'
# WEBUI_USER =

# Configure the directory to store the server user access log
# Furthermore, the user WEBUI_USER must own that directory.
WEBUI_ACCESS_LOG_DIR = '/var/log/oq-engine'

# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
# although not all choices may be available on all operating systems.
Expand All @@ -32,3 +32,5 @@ WEBUI_ACCESS_LOG_DIR = '/var/log/oq-engine'
# TIME_ZONE =

DEBUG = False

SUPPRESS_PERMISSION_DENIED_WARNINGS = True
19 changes: 11 additions & 8 deletions openquake/server/local_settings.py.tools
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,17 @@ APPLICATION_MODE = 'TOOLS_ONLY'
# Disable sharing of results across users (default True)
# ACL_ON = True

#Static Folder
# By default it is 'openquake'
# WEBUI_USER =

# Folder STATIC_ROOT is the full, absolute path to your static files folder.
# Furthermore, the user WEBUI_USER must own that directory.
STATIC_ROOT = '/var/www/webui'

# Configure the directory to store the server user access log
# Furthermore, the user WEBUI_USER must own that directory.
WEBUI_ACCESS_LOG_DIR = '/var/log/oq-engine'

# WEBUI config uncomment and set properly if needed
# WEBUIURL = 'http://localhost:8800/'

Expand All @@ -17,13 +25,6 @@ STATIC_ROOT = '/var/www/webui'
# enable WEBUI_PATHPREFIX to place webui pages below a specific path
# WEBUI_PATHPREFIX='/path/prefix'

# By default it is 'openquake'
# WEBUI_USER =

# Configure the directory to store the server user access log
# Furthermore, the user WEBUI_USER must own that directory.
WEBUI_ACCESS_LOG_DIR = '/var/log/oq-engine'

# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
# although not all choices may be available on all operating systems.
Expand All @@ -33,3 +34,5 @@ WEBUI_ACCESS_LOG_DIR = '/var/log/oq-engine'

# Set debug if the installation is dev mode
DEBUG = os.environ.get('TOOLS_DEV', False) == 'True'

SUPPRESS_PERMISSION_DENIED_WARNINGS = True

0 comments on commit 77ec451

Please sign in to comment.