1- Advanced Customization
2- ======================
1+ ########################
2+ Advanced Customization
3+ ########################
34
45This page describes advanced customization options for the OpenWISP Docker
56images.
@@ -11,8 +12,9 @@ areas that can be customized.
1112 :depth: 1
1213 :local:
1314
14- Creating the ``customization `` Directory
15- ----------------------------------------
15+ ******************************************
16+ Creating the ``customization `` Directory
17+ ******************************************
1618
1719The following commands will create the directory structure required for
1820adding customizations. Execute these commands in the same location as the
@@ -32,8 +34,9 @@ for an example.
3234
3335.. _docker_custom_django_settings :
3436
35- Supplying Custom Django Settings
36- --------------------------------
37+ **********************************
38+ Supplying Custom Django Settings
39+ **********************************
3740
3841The ``customization/configuration/django `` directory created in the
3942previous section is mounted at ``/opt/openwisp/openwisp/configuration `` in
@@ -48,8 +51,9 @@ You can also put additional files in
4851``customization/configuration/django `` that need to be mounted at
4952``/opt/openwisp/openwisp/configuration `` in the containers.
5053
51- Supplying Custom CSS and JavaScript Files
52- -----------------------------------------
54+ *******************************************
55+ Supplying Custom CSS and JavaScript Files
56+ *******************************************
5357
5458If you want to use your custom styles, add custom JavaScript you can
5559follow the following guide.
@@ -95,8 +99,9 @@ follow the following guide.
9599 2. You can create a ``maintenance.html `` file inside the ``customize ``
96100 directory to have a custom maintenance page for scheduled downtime.
97101
98- Supplying Custom uWSGI configuration
99- ------------------------------------
102+ **************************************
103+ Supplying Custom uWSGI configuration
104+ **************************************
100105
101106By default, you can only configure :ref: `"processes", "threads" and
102107"listen" settings of uWSGI using environment variables
@@ -125,11 +130,12 @@ supply your uWSGI configuration by following these steps:
125130
126131 .. _docker_nginx :
127132
128- Supplying Custom Nginx Configurations
129- -------------------------------------
133+ ***************************************
134+ Supplying Custom Nginx Configurations
135+ ***************************************
130136
131137Docker
132- ~~~~~~
138+ ======
133139
1341401. Create nginx your configuration file.
1351412. Set ``NGINX_CUSTOM_FILE `` to ``True `` in ``.env `` file.
@@ -146,8 +152,9 @@ Docker
146152
147153 .. _docker_freeradius :
148154
149- Supplying Custom Freeradius Configurations
150- ------------------------------------------
155+ ********************************************
156+ Supplying Custom Freeradius Configurations
157+ ********************************************
151158
152159Note: ``/etc/raddb/clients.conf ``, ``/etc/raddb/radiusd.conf ``,
153160``/etc/raddb/sites-enabled/default ``, ``/etc/raddb/mods-enabled/ ``,
@@ -159,7 +166,7 @@ including custom ``radiusd.conf`` and ``sites-enabled/default`` files.
159166.. _docker-1 :
160167
161168Docker
162- ~~~~~~
169+ ======
163170
1641711. Create file configuration files that you want to edit / add to your
165172 container.
@@ -175,8 +182,9 @@ Docker
175182 PATH/TO/YOUR/DEFAULT:/etc/raddb/sites-enabled/default
176183 ...
177184
178- Supplying Custom Python Source Code
179- -----------------------------------
185+ *************************************
186+ Supplying Custom Python Source Code
187+ *************************************
180188
181189You can build the images and supply custom python source code by creating
182190a file named ``.build.env `` in the root of the repository, then set the
@@ -206,8 +214,9 @@ written like this:
206214 DJANGO_SOURCE=https://github.com/< username> /Django/tarball/master
207215 OPENWISP_CONTROLLER_SOURCE=https://github.com/< username> /openwisp-controller/tarball/master
208216
209- Disabling Services
210- ------------------
217+ ********************
218+ Disabling Services
219+ ********************
211220
212221- ``openwisp-dashboard ``: You cannot disable the openwisp-dashboard. It is
213222 the heart of OpenWISP and performs core functionalities.
0 commit comments