Skip to content

Commit 462d376

Browse files
authored
Merge pull request #531 from TaykYoku/v4r3_addConfDoc
[integration] add some docs
2 parents 1a7473c + 853d8a4 commit 462d376

2 files changed

Lines changed: 65 additions & 1 deletion

File tree

README.rst

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,65 @@ Install
2424
-------
2525

2626
Instructions for installing WebAppDIRAC are described `here <https://github.com/DIRACGrid/DIRAC/blob/integration/docs/source/AdministratorGuide/ServerInstallations/InstallingWebAppDIRAC.rst#installing-webappdirac>`_.
27+
28+
Configure
29+
---------
30+
31+
To configure web portal you need create **/WebApp** section in DIRAC configuration::
32+
33+
WebApp
34+
{
35+
# Specifies the caption in the title in the browser. By default, the name of the configuration is taken.
36+
# Title = "My title"
37+
38+
# To use some balancer(e.g.: nginx) assign a balaser name here. By default, the portal is launched without a balancer.
39+
# Balancer = None
40+
41+
# If a balancer is defined, this option determines the number of processes that will run in parallel on different ports. By default: 1.
42+
# NumProcesses = 1
43+
44+
# If you want to run web portal in "development mode", by default, this is disabled.
45+
# DevelopMode = True
46+
47+
# Change the root of the request path to the server(default: /DIRAC). It is not recommended to change.
48+
# RootURL = /DIRAC
49+
50+
# To configure https protocol. It is not recommended to change.
51+
# If you use balancer this options will ignore and will use HTTP options.
52+
# HTTPS
53+
# {
54+
# To disable https protocol delete value. It is not recommended to change.
55+
# Enabled = True
56+
# To set another port(default: 8443).
57+
# Port = 8443
58+
# Host certificate pem
59+
# Cert = /opt/dirac/etc/grid-security/hostcert.pem
60+
# Host key pem
61+
# Cert = /opt/dirac/etc/grid-security/hostkey.pem
62+
# }
63+
64+
# To configure http protocol. It is not recommended to change.
65+
# HTTP
66+
# {
67+
# To set another port. By default 8000 if you use balancer and 8080 if not.
68+
# Port = 8000
69+
# }
70+
71+
# To set secret for security cookies
72+
# CookieSecret = mysecret
73+
74+
# Next section contain access rights.
75+
# Access
76+
# {
77+
# upload = TruestedHost
78+
# }
79+
80+
# Path to favicon icon. It is not recommended to change.
81+
# Icon = /static/core/img/icons/system/favicon.ico
82+
83+
# SSL protocol to use.
84+
# SSLProtocol =
85+
86+
# Set static directories.
87+
# DefaultStaticDirs = None
88+
}

src/WebAppDIRAC/Lib/Conf.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
from DIRAC import gConfig
77
from DIRAC.Core.Security import Locations, X509Chain, X509CRL
8+
from DIRAC.Core.Utilities.Decorators import deprecated
89

910
BASECS = "/WebApp"
1011

@@ -237,12 +238,13 @@ def getAuthSectionForHandler(route):
237238
return "%s/Access/%s" % (BASECS, route)
238239

239240

241+
@deprecated("This funtion is deprecated, use 'tabs' instead.")
240242
def getTheme():
241243
"""Get theme
242244
243245
:return: str
244246
"""
245-
return getCSValue("Theme", "tabs")
247+
return "tabs"
246248

247249

248250
def getIcon():

0 commit comments

Comments
 (0)