Search 1.9 billion lines of Odoo code on GitHub

muk_session_store

Author: MuK IT
License: LGPL-3
Branch: 13.0
Repository: BlueConnectBR/muk_base
Dependencies: muk_utils
Languages: HTML (177, 30.3%), PO File (36, 6.2%), Python (250, 42.7%), SVG (1, 0.2%), and reStructuredText (121, 20.7%)
Other branches: 11.0, and 12.0
Other repositories: AITIC/muk_base, ChinaShrimp/muk_base, ERPLibre/muk_base, EdyKend/muk_base, Intesco2-0/muk_base, Jeisonpernia/muk_base, JohnLYH/muk_base, KonaERP/muk_base, Leuan12/muk_base, MaitreDede/muk_base, MathBenTech/muk_base, Muhamed-Git/muk_base, NCS-75/muk_base, OCA-MUK/muk_base, Posland/muk_base, RahmatNS/muk_base, SDIsl/muk_base, SanteLibre/muk_base, SeuMarco/muk_base, ad1ltd/muk_base, ajinvn2019/muk_base, aravinthu/muk_base, asoral/muk_base, boky1993/muk_base, claro5/muk_base, crnd-inc/muk_base, dndoanh/muk_base, drmedrme/muk_base, dsasoftware/muk_base, dunxiangyu/muk_base, ejprice/muk_base, erick-alvino/muk_base, gastonfeng/muk_base, gstrainovic/odoo-12-docker-compose-qms-dms-ssl, huahyong/muk_base, ideaspositivas-group/muk_base, jacky82669513/muk_base, jashan510/muk_base, jason156/muk_base, joyinfo/muk_base, klcftm/muk_base, kopeyev/muk_base, l327253678/muk_base, leangjia/muk_base, lipengfei911/muk_base, lpajaresv/muk_base, m9rio/muk_base, marcelsavegnago/muk_base, maxellini/muk_base, mcjulian1107/muk_base, mfhm95/muk_base, muk-it/muk_base, myceliandre/muk_base, nelsonramirezs/muk_base, niulinlnc/muk_base, odoo-modules/muk_base, ondrong/muk_base, one2pret/muk_base, pasgou/muk_base, ravishekharco/muk_base, redblow/muk_base, sbejaoui/muk_base, sc4you/muk_base, sewisoft/muk_base, shiram/muk_base, tongjiou/muk_base, trung8358573/muk_base, unitek-solusi/muk_base, vincenzodiroberto/muk_base, and vkuldeep/muk_base

<h1 class="title">MuK Session Store</h1> <p>In a distributed system the filestore based session store of Odoo has the problem that unwanted session timeouts occur regularly. This module offers two additional options for the Session Store. Sessions can be stored either in a Redis database or directly in Postgres. Both options have the advantage that the session information can also be queried in a distributed system.</p> <a name="requirements"></a> <h2>Requirements</h2> <p>The requirements are only required if Redis is used as the session store.</p> <a name="redis"></a> <h3>Redis</h3> <p>A interface to the Redis key-value store for Python. To install Redis please follow the <a class="reference external" href="https://github.com/andymccurdy/redis-py">instructions</a> or install the library via pip.</p> <p><code>pip install redis</code></p> <a name="installation"></a> <h2>Installation</h2> <p>To install this module, you need to:</p> <p>Download the module and add it to your Odoo addons folder. Afterward, log on to your Odoo server and go to the Apps menu. Trigger the debug mode and update the list by clicking on the &quot;Update Apps List&quot; link. Now install the module by clicking on the install button.</p> <p>Another way to install this module is via the package management for Python (<a class="reference external" href="https://pypi.org/project/pip/">PyPI</a>).</p> <p>To install our modules using the package manager make sure <a class="reference external" href="https://pypi.org/project/odoo-autodiscover/">odoo-autodiscover</a> is installed correctly. Note that for Odoo version 11.0 and later this is not necessary anymore. Then open a console and install the module by entering the following command:</p> <p><code>pip install --extra-index-url https://nexus.mukit.at/repository/odoo/simple &lt;module&gt;</code></p> <p>The module name consists of the Odoo version and the module name, where underscores are replaced by a dash.</p> <p><strong>Module:</strong></p> <p><code>odoo&lt;version&gt;-addon-&lt;module_name&gt;</code></p> <p><strong>Example:</strong></p> <p><code>sudo -H pip3 install --extra-index-url https://nexus.mukit.at/repository/odoo/simple odoo13-addon-muk-utils</code></p> <p>Once the installation has been successfully completed, the app is already in the correct folder. Log on to your Odoo server and go to the Apps menu. Trigger the debug mode and update the list by clicking on the &quot;Update Apps List&quot; link. Now install the module by clicking on the install button.</p> <p>The biggest advantage of this variant is that you can now also update the app using the &quot;pip&quot; command. To do this, enter the following command in your console:</p> <p><code>pip install --upgrade --extra-index-url https://nexus.mukit.at/repository/odoo/simple &lt;module&gt;</code></p> <p>When the process is finished, restart your server and update the application in Odoo. The steps are the same as for the installation only the button has changed from &quot;Install&quot; to &quot;Upgrade&quot;.</p> <p>You can also view available Apps directly in our <a class="reference external" href="https://nexus.mukit.at/#browse/browse:odoo">repository</a> and find a more detailed installation guide on our <a class="reference external" href="https://mukit.at/page/open-source">website</a>.</p> <p>For modules licensed under a proprietary license, you will receive the access data after you purchased the module. If the purchase were made at the Odoo store please contact our <a class="reference external" href="mailto:support&#64;mukit.at">support</a> with a confirmation of the purchase to receive the corresponding access data.</p> <a name="upgrade"></a> <h2>Upgrade</h2> <p>To upgrade this module, you need to:</p> <p>Download the module and add it to your Odoo addons folder. Restart the server and log on to your Odoo server. Select the Apps menu and upgrade the module by clicking on the upgrade button.</p> <p>If you installed the module using the &quot;pip&quot; command, you can also update the module in the same way. Just type the following command into the console:</p> <p><code>pip install --upgrade --extra-index-url https://nexus.mukit.at/repository/odoo/simple &lt;module&gt;</code></p> <p>When the process is finished, restart your server and update the application in Odoo, just like you would normally.</p> <a name="configuration"></a> <h2>Configuration</h2> <p>Since this module need to be activated even if no database is selected it should be loaded right at the server start. This can be done by editing the configuration file or passing a load parameter to the start script.</p> <p>Parameter: <code>--load=web,muk_session_store</code></p> <p>The following fields can be modified in the config file:</p> <p><strong>Store:</strong></p> <ul class="simple"> <li>session_store_database</li> <li>session_store_redis</li> </ul> <p><strong>Postgres:</strong></p> <ul class="simple"> <li>session_store_dbname</li> <li>session_store_dbtable</li> </ul> <p><strong>Redis:</strong></p> <ul class="simple"> <li>session_store_prefix</li> <li>session_store_host</li> <li>session_store_port</li> <li>session_store_dbindex</li> <li>session_store_pass</li> <li>session_store_ssl</li> <li>session_store_ssl_cert_reqs</li> </ul> <a name="usage"></a> <h2>Usage</h2> <p>After setting the parameters, the session store is used automatically.</p> <p>In order to use ssl, which is a requirement of some databases, session_store_ssl should be set to True and session_store_ssl_cert_reqs should be set to 'required' except in the case where the server certificate does not match the host name.</p> <p>e.g. # Server has a proper certificate session_store_ssl=True session_store_ssl_cert_reqs=required</p> <p># Server does not have a proper certificate (AWS possibly) session_store_ssl=True session_store_ssl_cert_reqs=None</p> <p>For more information please see the redis python module documentation</p> <a name="credit"></a> <h2>Credit</h2> <a name="contributors"></a> <h3>Contributors</h3> <ul class="simple"> <li>Mathias Markl &lt;<a class="reference external" href="mailto:mathias.markl&#64;mukit.at">mathias.markl&#64;mukit.at</a>&gt;</li> </ul> <a name="images"></a> <h3>Images</h3> <p>Some pictures are based on or inspired by the icon set of Font Awesome:</p> <ul class="simple"> <li><a class="reference external" href="https://fontawesome.com">Font Awesome</a></li> </ul> <a name="projects"></a> <h3>Projects</h3> <p>Parts of the module are inspired by:</p> <ul class="simple"> <li><a class="reference external" href="https://github.com/it-projects-llc/misc-addons">PSQL Session Store</a></li> </ul> <a name="author-maintainer"></a> <h3>Author &amp; Maintainer</h3> <p>This module is maintained by the <a class="reference external" href="https://www.mukit.at/">MuK IT GmbH</a>.</p> <p>MuK IT is an Austrian company specialized in customizing and extending Odoo. We develop custom solutions for your individual needs to help you focus on your strength and expertise to grow your business.</p> <p>If you want to get in touch please contact us via <a class="reference external" href="mailto:sale&#64;mukit.at">mail</a> or visit our <a class="reference external" href="https://mukit.at">website</a>.</p>