User Tools

Site Tools


os:linux:fedora

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
os:linux:fedora [2022/02/10 21:49] – created titannetos:linux:fedora [2022/03/28 20:21] (current) titannet
Line 2: Line 2:
  
 <code> <code>
- firewall-cmd --zone=public --add-port=3000/tcp+firewall-cmd --zone=public --add-port=3000/tcp 
 +firewall-cmd --add-service=http
  
 + certbot certonly --standalone -d lieblichknuffeltal.de -d www.lieblichknuffeltal.de
 +
 +
 +
 +</code>
 +
 +<file html index.html>
 +<!DOCTYPE html>
 +<html lang="en">
 +
 +    <head>
 +        <meta charset="UTF-8">
 +        <meta name="viewport" content="width=device-width, initial-scale=1.0">
 +        <title>gitea.lieblichknuffeltal.de</title>
 +    </head>
 +
 +    <body>
 +        <h1>It works</h1>
 +    </body>
 +
 +</html>
 +</file>
 +
 +<file bash lkt.conf>
 +server {
 +        listen 80;
 +        listen [::]:80;
 +        root /var/www/lieblichknuffeltal.de;
 +        index index.html;
 +        server_name lieblichknuffeltal.de www.lieblichknuffeltal.de;
 +}
 +</file>
 +
 +<code bash>
 +#selinux doesn't permit nginx to read /var/www-
 +chcon -Rt httpd_sys_content_t /var/www
 +
 +dnf install python3-certbot-nginx
 +certbot -d gitea.lieblichknuffeltal.de --expand --nginx
 +
 +</code>
 +
 +<code bash>
 + cat /var/log/audit/audit.log | grep denied | grep 3000
 +dnf whatprovides audit2why
 +dnf install  policycoreutils-python-utils
 +
 +cat /var/log/audit/audit.log | grep denied | grep 3000 | audit2why
 +setsebool -P httpd_can_network_connect 1
 +# or [doesn't work]
 +semanage port --add --type http_port_t --proto tcp 3000
 +semanage port -l | grep 3000
  
 </code> </code>
os/linux/fedora.1644526182.txt.gz · Last modified: 2022/02/10 21:49 by titannet

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki