From 7c8001124f0f492654563eb389f1f23356f175a8 Mon Sep 17 00:00:00 2001 From: Daniel Steiner Date: Sat, 24 Feb 2018 16:20:35 +0100 Subject: [PATCH] Better vhosts config made --- centos/SPECS/httpd.spec | 6 ++++- centos/SPECS/sftp-config.json | 45 +++++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 centos/SPECS/sftp-config.json diff --git a/centos/SPECS/httpd.spec b/centos/SPECS/httpd.spec index 80b8536..f81edc7 100644 --- a/centos/SPECS/httpd.spec +++ b/centos/SPECS/httpd.spec @@ -38,6 +38,7 @@ Source25: 01-session.conf Source26: 10-listen443.conf Source27: httpd.socket Source28: 00-optional.conf +Source29: vhosts.conf # Documentation Source30: README.confd Source31: README.confmod @@ -295,7 +296,9 @@ done # install conf file/directory mkdir $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d \ - $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.modules.d + $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.modules.d \ + $RPM_BUILD_ROOT%{_sysconfdir}/httpd/vhosts.d +install -m 644 %{S:29} $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/00-vhosts.conf install -m 644 $RPM_SOURCE_DIR/README.confd \ $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/README install -m 644 $RPM_SOURCE_DIR/README.confmod \ @@ -569,6 +572,7 @@ rm -rf $RPM_BUILD_ROOT %exclude %{_sysconfdir}/httpd/conf.d/manual.conf %dir %{_sysconfdir}/httpd/conf.modules.d +%dir %{_sysconfdir}/httpd/vhosts.d %{_sysconfdir}/httpd/conf.modules.d/README %config(noreplace) %{_sysconfdir}/httpd/conf.modules.d/*.conf %exclude %{_sysconfdir}/httpd/conf.modules.d/00-ssl.conf diff --git a/centos/SPECS/sftp-config.json b/centos/SPECS/sftp-config.json new file mode 100644 index 0000000..b6777d9 --- /dev/null +++ b/centos/SPECS/sftp-config.json @@ -0,0 +1,45 @@ +{ + // The tab key will cycle through the settings when first created + // Visit http://wbond.net/sublime_packages/sftp/settings for help + + // sftp, ftp or ftps + "type": "sftp", + + "save_before_upload": true, + "upload_on_save": false, + "sync_down_on_open": false, + "sync_skip_deletes": false, + "sync_same_age": true, + "confirm_downloads": false, + "confirm_sync": true, + "confirm_overwrite_newer": false, + + "host": "cent7build", + "user": "root", + //"password": "password", + //"port": "22", + + "remote_path": "/root/rpmbuild/SPECS/", + "ignore_regexes": [ + "\\.sublime-(project|workspace)", "sftp-config(-alt\\d?)?\\.json", + "sftp-settings\\.json", "/venv/", "\\.svn/", "\\.hg/", "\\.git/", + "\\.bzr", "_darcs", "CVS", "\\.DS_Store", "Thumbs\\.db", "desktop\\.ini" + ], + //"file_permissions": "664", + //"dir_permissions": "775", + + //"extra_list_connections": 0, + + "connect_timeout": 30, + //"keepalive": 120, + //"ftp_passive_mode": true, + //"ftp_obey_passive_host": false, + //"ssh_key_file": "~/.ssh/id_rsa", + //"sftp_flags": ["-F", "/path/to/ssh_config"], + + //"preserve_modification_times": false, + //"remote_time_offset_in_hours": 0, + //"remote_encoding": "utf-8", + //"remote_locale": "C", + //"allow_config_upload": false, +}