Skip to content

Instantly share code, notes, and snippets.

View jbarreraballestas's full-sized avatar
🎯
Focusing

Jhordy Barrera jbarreraballestas

🎯
Focusing
View GitHub Profile
@jbarreraballestas
jbarreraballestas / redhat_laravel.txt
Last active September 30, 2022 01:27
RedHat: executed commands for install nginx php-fpm for use laravel
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

Documentación personal sobre el uso de git y github

Git cycle

Ver las opciones para configuración de git

git config

Ver como está configurado git

Configuración API / Web Service Educativo Probada en versión 3.11.5+, 4.1.1+

Identificado como usuario administrador:

Administracion servicios web

  • Administración del sitio > Servidor > Servicios Web

Paso 1. Habilitar Servicios Web

Reglas de iptables

INPUT Configura las reglas de paquetes entrantes

FORWARD Configura las reglas de reenvío de paquetes

OUTPUT Configura las reglas de paquetes salientes

ACCEPT Significa que el paquete podrá pasar.

Comandos docker

correr el contenedor hello-world

docker run hello-world

ver documentación

docker run -h

Configurar la seguridad del servidor ubuntu

Acceso SSH con llave pem

Crear carpeta para la llave

mkdir llavero

Ingresar a la carpeta

@jbarreraballestas
jbarreraballestas / odoo.conf
Last active July 22, 2024 14:41
Odoo apache virtual host
<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
@jbarreraballestas
jbarreraballestas / odoo.conf
Last active July 21, 2023 14:08
Odoo nginx configuration
#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;
@jbarreraballestas
jbarreraballestas / res.config.settings.md
Last active October 9, 2023 15:44
Odoo 16.0 res.config.settings sample

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')
@jbarreraballestas
jbarreraballestas / launch.json
Created October 10, 2023 13:13
run odoo vscode windows
{
"version": "0.2.0",
"configurations": [
{
"name": "Python: Odoo",
"type": "python",
"request": "launch",
"program": "${workspaceFolder}/odoo-bin",
"args": [
"-c",