uncomment broadcast service provider: config/app.php
App\Providers\BroadcastServiceProvider::class,
.env
sudo yum update -y | |
sudo yum module list nginx | |
sudo yum module enable nginx:1.20 | |
sudo yum install nginx -y | |
sudo firewall-cmd --permanent --add-port={80/tcp,443/tcp} | |
sudo systemctl enable nginx | |
sudo systemctl start nginx | |
sestatus | |
sudo firewall-cmd --list-ports | |
systemctl is-enabled nginx |
<VirtualHost *:80> | |
ServerName myodoodomain.com | |
RewriteEngine on | |
RewriteCond %{SERVER_NAME} =myodoodomain.com | |
RewriteRule ^ http://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent] | |
</VirtualHost> | |
<IfModule mod_ssl.c> | |
<VirtualHost *:443> | |
ServerName myodoodomain.com |
#odoo server | |
upstream odoo { | |
server 127.0.0.1:8069; | |
} | |
upstream odoochat { | |
server 127.0.0.1:8072; | |
} | |
map $http_upgrade $connection_upgrade { | |
default upgrade; | |
'' close; |
models/res_config_settings.py
from odoo import api, fields, models
class ResConfigSettings(models.TransientModel):
_inherit = 'res.config.settings'
sample = fields.Char(string='Sample', config_parameter='module_name.sample')