saving uncommitted changes in /etc prior to dnf run

This commit is contained in:
2022-04-26 13:32:47 +03:00
parent 00aa9bed01
commit 747d9666ce
19 changed files with 77 additions and 34 deletions

View File

@@ -1,34 +1,33 @@
server {
listen 192.168.1.2:80;
server_name files.898.ro;
charset utf-8;
root /var/www/html/afiles;
index index.php index.html index.htm;
listen 192.168.1.2:80;
server_name files.898.ro;
charset utf-8;
root /var/www/html/afiles;
index index.php index.html index.htm;
access_log /var/log/nginx/files.898.ro.access.log;
error_log /var/log/nginx/files.898.ro.error.log;
access_log /var/log/nginx/files.898.ro.access.log;
error_log /var/log/nginx/files.898.ro.error.log;
location ~* \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
include fastcgi_params;
fastcgi_pass unix:/var/run/php-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_buffer_size 16k;
fastcgi_buffers 4 16k;
}
# gzip should not be used with SSL
gzip off;
# gzip should not be used with SSL
gzip off;
listen 192.168.1.2:443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/files.898.ro/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/files.898.ro/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
listen 192.168.1.2:443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/files.898.ro/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/files.898.ro/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
location / {
proxy_pass https://localhost:8011;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $host;
}
### redirect
if ($scheme != "https") {
return 301 https://$host$request_uri;
} # managed by Certbot
### redirect
if ($scheme != "https") {
return 301 https://$host$request_uri;
} # managed by Certbot
}

View File

@@ -0,0 +1,34 @@
server {
listen 192.168.1.2:80;
server_name files.898.ro;
charset utf-8;
root /var/www/html/afiles;
index index.php index.html index.htm;
access_log /var/log/nginx/files.898.ro.access.log;
error_log /var/log/nginx/files.898.ro.error.log;
location ~* \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
include fastcgi_params;
fastcgi_pass unix:/var/run/php-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_buffer_size 16k;
fastcgi_buffers 4 16k;
}
# gzip should not be used with SSL
gzip off;
listen 192.168.1.2:443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/files.898.ro/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/files.898.ro/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
### redirect
if ($scheme != "https") {
return 301 https://$host$request_uri;
} # managed by Certbot
}