git config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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')
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Python: Odoo", | |
"type": "python", | |
"request": "launch", | |
"program": "${workspaceFolder}/odoo-bin", | |
"args": [ | |
"-c", |
OlderNewer