1- ########################
2- Advanced Customization
3- ########################
1+ Advanced Customization
2+ ======================
43
54This page describes advanced customization options for the OpenWISP Docker
65images.
@@ -12,9 +11,8 @@ areas that can be customized.
1211 :depth: 1
1312 :local:
1413
15- ******************************************
16- Creating the ``customization `` Directory
17- ******************************************
14+ Creating the ``customization `` Directory
15+ ----------------------------------------
1816
1917The following commands will create the directory structure required for
2018adding customizations. Execute these commands in the same location as the
@@ -34,9 +32,8 @@ for an example.
3432
3533.. _docker_custom_django_settings :
3634
37- **********************************
38- Supplying Custom Django Settings
39- **********************************
35+ Supplying Custom Django Settings
36+ --------------------------------
4037
4138The ``customization/configuration/django `` directory created in the
4239previous section is mounted at ``/opt/openwisp/openwisp/configuration `` in
@@ -51,9 +48,8 @@ You can also put additional files in
5148``customization/configuration/django `` that need to be mounted at
5249``/opt/openwisp/openwisp/configuration `` in the containers.
5350
54- *******************************************
55- Supplying Custom CSS and JavaScript Files
56- *******************************************
51+ Supplying Custom CSS and JavaScript Files
52+ -----------------------------------------
5753
5854If you want to use your custom styles, add custom JavaScript you can
5955follow the following guide.
@@ -99,9 +95,8 @@ follow the following guide.
9995 2. You can create a ``maintenance.html `` file inside the ``customize ``
10096 directory to have a custom maintenance page for scheduled downtime.
10197
102- **************************************
103- Supplying Custom uWSGI configuration
104- **************************************
98+ Supplying Custom uWSGI configuration
99+ ------------------------------------
105100
106101By default, you can only configure :ref: `"processes", "threads" and
107102"listen" settings of uWSGI using environment variables
@@ -130,12 +125,11 @@ supply your uWSGI configuration by following these steps:
130125
131126 .. _docker_nginx :
132127
133- ***************************************
134- Supplying Custom Nginx Configurations
135- ***************************************
128+ Supplying Custom Nginx Configurations
129+ -------------------------------------
136130
137131Docker
138- ======
132+ ~~~~~~
139133
1401341. Create nginx your configuration file.
1411352. Set ``NGINX_CUSTOM_FILE `` to ``True `` in ``.env `` file.
@@ -152,9 +146,8 @@ Docker
152146
153147 .. _docker_freeradius :
154148
155- ********************************************
156- Supplying Custom Freeradius Configurations
157- ********************************************
149+ Supplying Custom Freeradius Configurations
150+ ------------------------------------------
158151
159152Note: ``/etc/raddb/clients.conf ``, ``/etc/raddb/radiusd.conf ``,
160153``/etc/raddb/sites-enabled/default ``, ``/etc/raddb/mods-enabled/ ``,
@@ -166,7 +159,7 @@ including custom ``radiusd.conf`` and ``sites-enabled/default`` files.
166159.. _docker-1 :
167160
168161Docker
169- ======
162+ ~~~~~~
170163
1711641. Create file configuration files that you want to edit / add to your
172165 container.
@@ -182,9 +175,8 @@ Docker
182175 PATH/TO/YOUR/DEFAULT:/etc/raddb/sites-enabled/default
183176 ...
184177
185- *************************************
186- Supplying Custom Python Source Code
187- *************************************
178+ Supplying Custom Python Source Code
179+ -----------------------------------
188180
189181You can build the images and supply custom python source code by creating
190182a file named ``.build.env `` in the root of the repository, then set the
@@ -214,9 +206,8 @@ written like this:
214206 DJANGO_SOURCE=https://github.com/< username> /Django/tarball/master
215207 OPENWISP_CONTROLLER_SOURCE=https://github.com/< username> /openwisp-controller/tarball/master
216208
217- ********************
218- Disabling Services
219- ********************
209+ Disabling Services
210+ ------------------
220211
221212- ``openwisp-dashboard ``: You cannot disable the openwisp-dashboard. It is
222213 the heart of OpenWISP and performs core functionalities.
0 commit comments