Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.
Beide Seiten, vorherige Überarbeitung Vorherige Überarbeitung Nächste Überarbeitung | Vorherige Überarbeitung Nächste ÜberarbeitungBeide Seiten, nächste Überarbeitung | ||
server_und_serverdienste:installation_odoo13_auf_centos8 [2020/02/02 12:36] – boospy | server_und_serverdienste:installation_odoo13_auf_centos8 [2020/02/27 13:11] – [Source] boospy | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
- | ====== Installation Odoo13 | + | ====== Installation Odoo13 |
+ | {{: | ||
+ | {{: | ||
- | In this tutorial, we will learn how to install and configure Odoo 13 with Nginx as a reverse proxy on CentOS 8 server. | + | In this tutorial, we will learn how to install and configure Odoo 13 with Nginx as a reverse proxy on CentOS 8 server |
===== Requirements ===== | ===== Requirements ===== | ||
Zeile 55: | Zeile 57: | ||
wget https:// | wget https:// | ||
dnf localinstall wkhtmltox-0.12.5-1.centos7.x86_64.rpm | dnf localinstall wkhtmltox-0.12.5-1.centos7.x86_64.rpm | ||
+ | dnf install compat-openssl10 libpng15 | ||
</ | </ | ||
Zeile 108: | Zeile 111: | ||
db_password = False | db_password = False | ||
xmlrpc_port = 8069 | xmlrpc_port = 8069 | ||
+ | http_interface = :: | ||
logfile = / | logfile = / | ||
logrotate = True | logrotate = True | ||
Zeile 129: | Zeile 133: | ||
User=odoo | User=odoo | ||
Group=odoo | Group=odoo | ||
- | ExecStart=/ | + | ExecStart=/ |
StandardOutput=journal+console | StandardOutput=journal+console | ||
[Install] | [Install] | ||
Zeile 155: | Zeile 159: | ||
You should see the following output: | You should see the following output: | ||
< | < | ||
- | tcp | + | tcp6 0 0 :::8069 :::* LISTEN |
</ | </ | ||
- | ==== Configure Nginx as a Reverse Proxy for Odoo 13 ==== | + | ==== Configure Nginx as a Reverse Proxy with Let's Encrypt |
Next, you will need to install and configure the Nginx as a reverse proxy for Odoo 13 instance. First, install the Nginx web server with the following command: | Next, you will need to install and configure the Nginx as a reverse proxy for Odoo 13 instance. First, install the Nginx web server with the following command: | ||
< | < | ||
- | dnf install nginx | + | dnf install nginx mod_ssl |
</ | </ | ||
Once installed, create a new virtual host configuration file with the following command: | Once installed, create a new virtual host configuration file with the following command: | ||
Zeile 168: | Zeile 172: | ||
< | < | ||
upstream odoo { | upstream odoo { | ||
- | | + | |
} | } | ||
+ | |||
server { | server { | ||
listen 80; | listen 80; | ||
- | server_name example.com; | + | |
+ | | ||
+ | include / | ||
+ | return 301 https:// | ||
access_log / | access_log / | ||
error_log / | error_log / | ||
+ | } | ||
+ | |||
+ | server { | ||
+ | listen 443 ssl http2; | ||
+ | listen [::]:443 ssl http2; | ||
+ | server_name foo.example.com; | ||
+ | |||
+ | ssl_certificate / | ||
+ | ssl_certificate_key / | ||
+ | ssl_trusted_certificate / | ||
+ | include / | ||
+ | include / | ||
- | | + | |
proxy_set_header X-Forwarded-Host $host; | proxy_set_header X-Forwarded-Host $host; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
Zeile 197: | Zeile 217: | ||
gzip_types text/css text/less text/plain text/xml application/ | gzip_types text/css text/less text/plain text/xml application/ | ||
gzip on; | gzip on; | ||
+ | } | ||
+ | </ | ||
+ | For the initial setup you must comment out allo SSL entries in this file. | ||
+ | After that edit the file ''/ | ||
+ | < | ||
+ | user nginx; | ||
+ | worker_processes auto; | ||
+ | error_log / | ||
+ | pid / | ||
+ | |||
+ | include / | ||
+ | |||
+ | events { | ||
+ | worker_connections 1024; | ||
+ | } | ||
+ | |||
+ | http { | ||
+ | log_format | ||
+ | ' | ||
+ | '" | ||
+ | |||
+ | access_log | ||
+ | |||
+ | sendfile | ||
+ | tcp_nopush | ||
+ | tcp_nodelay | ||
+ | keepalive_timeout | ||
+ | types_hash_max_size 2048; | ||
+ | |||
+ | include | ||
+ | default_type | ||
+ | |||
+ | include / | ||
+ | |||
+ | server { | ||
+ | listen | ||
+ | listen | ||
+ | server_name | ||
+ | root / | ||
+ | #return 301 https:// | ||
+ | |||
+ | include / | ||
+ | |||
+ | error_page 404 /404.html; | ||
+ | error_page 500 502 503 504 /50x.html; | ||
+ | } | ||
} | } | ||
</ | </ | ||
Zeile 239: | Zeile 305: | ||
setsebool -P httpd_can_network_connect on | setsebool -P httpd_can_network_connect on | ||
</ | </ | ||
+ | ==== Install and configure Let's Encrypt ==== | ||
+ | < | ||
+ | cd /root | ||
+ | wget https:// | ||
+ | mv certbot-auto / | ||
+ | chown root / | ||
+ | chmod 0755 / | ||
+ | / | ||
+ | </ | ||
+ | After setup is finished, comment in all SSL entries again, and restart Nginx. '' | ||
+ | < | ||
+ | crontab -e | ||
+ | </ | ||
+ | < | ||
+ | @weekly root test -x / | ||
+ | </ | ||
+ | If you would like to test it you can do it with this simple command: | ||
+ | < | ||
+ | certbot-auto renew --dry-run | ||
+ | </ | ||
+ | |||
===== Access Odoo 13 Web Interface ===== | ===== Access Odoo 13 Web Interface ===== | ||
Now, Odoo 13 is installed and configured. It's time to access the Odoo 13 web interface. Open your web browser and type the URL http:// | Now, Odoo 13 is installed and configured. It's time to access the Odoo 13 web interface. Open your web browser and type the URL http:// | ||
Zeile 251: | Zeile 338: | ||
===== Source ===== | ===== Source ===== | ||
+ | Some Source is from here: | ||
https:// | https:// | ||