AlternC / alternc-nginx-ssl

Nginx as an ssl endpoint + autoconfiguration & letsencrypt for AlternC
GNU General Public License v2.0
1 stars 3 forks source link

Disable https mode (mode ssl from panel) #10

Open camlafit opened 1 month ago

camlafit commented 1 month ago

Hi

Looks interessting to disable https_option to all domain type. As nginx is a front with ssl feature, alternc don't need to manage any ssl state.

Check any regression about template *-both use

camlafit commented 1 month ago

To prevent any regression

camlafit commented 1 month ago

find /etc/alternc/templates -path *apache2* -iname "*-both.conf" -exec bash -c 'cp $0 ${0/-both/}' {} \;

camlafit commented 1 month ago

Save queries to run during postrm select CONCAT("UPDATE domaines_type SET has_https_option = 1 WHERE name='",name,"';") from domaines_type where has_https_option = 1; and run on post

UPDATE domaines_type SET has_https_option=0; UPDATE sub_domaines SET https="" , web_action="UPDATE" where https <> "";