chore: 打包nginx配置

This commit is contained in:
TsMask
2024-03-21 15:07:21 +08:00
parent a1da184942
commit 5783858490
6 changed files with 21 additions and 33 deletions

View File

@@ -35,23 +35,23 @@ http {
# for more information.
include /etc/nginx/conf.d/*.conf;
server {
listen 1080;
listen [::]:1080;
server_name _;
root /usr/share/nginx/html;
# server {
# listen 1080;
# listen [::]:1080;
# server_name _;
# root /usr/share/nginx/html;
# Load configuration files for the default server block.
include /etc/nginx/default.d/*.conf;
# # Load configuration files for the default server block.
# include /etc/nginx/default.d/*.conf;
error_page 404 /404.html;
location = /40x.html {
}
# error_page 404 /404.html;
# location = /40x.html {
# }
error_page 500 502 503 504 /50x.html;
location = /50x.html {
}
}
# error_page 500 502 503 504 /50x.html;
# location = /50x.html {
# }
# }
# Settings for a TLS enabled server.
#

View File

@@ -50,7 +50,7 @@ chmod +rx ${RPM_BUILD_ROOT}/usr/lib64/*
#cp -rf omc/license ${RPM_BUILD_ROOT}/usr/local/omc/
#cp -rf omc/database ${RPM_BUILD_ROOT}/usr/local/omc/
#cp -rf db/* ${RPM_BUILD_ROOT}/usr/local/db/
#cp -f nginx/omc.conf ${RPM_BUILD_ROOT}/etc/nginx/conf.d/
#cp -f nginx/default.conf ${RPM_BUILD_ROOT}/etc/nginx/conf.d/
#cp -f systemd/omc.service ${RPM_BUILD_ROOT}/lib/systemd/system/omc.service
#cp -f systemd/crontask.service ${RPM_BUILD_ROOT}/lib/systemd/system/crontask.service
#cp -f systemd/sshsvc.service ${RPM_BUILD_ROOT}/lib/systemd/system/sshsvc.service
@@ -146,7 +146,7 @@ sudo systemctl stop captrace.service
sudo systemctl stop adb.service
sudo systemctl stop nginx.service
#rm -rf /usr/local/omc
rm -rf /etc/nginx/conf.d/omc.conf
rm -rf /etc/nginx/conf.d/default.conf
sudo systemctl disable omc.service
sudo systemctl disable crontask.service
sudo systemctl disable sshsvc.service
@@ -186,7 +186,7 @@ fi
/usr/local/omc/database
/usr/local/omc/static
/usr/local/db
/etc/nginx/conf.d/omc.conf
/etc/nginx/conf.d/default.conf
/lib/systemd/system/omc.service
/lib/systemd/system/crontask.service
/lib/systemd/system/sshsvc.service