Przeglądaj źródła

pelican onion address

Bob Mottram 8 lat temu
rodzic
commit
8eecc01d65
1 zmienionych plików z 7 dodań i 0 usunięć
  1. 7
    0
      src/freedombone-app-pelican

+ 7
- 0
src/freedombone-app-pelican Wyświetl plik

35
 
35
 
36
 PELICAN_DOMAIN_NAME=
36
 PELICAN_DOMAIN_NAME=
37
 PELICAN_BLOG_CODE=
37
 PELICAN_BLOG_CODE=
38
+PELICAN_ONION_PORT=8113
38
 
39
 
39
 PELICAN_THEMES_REPO="https://github.com/getpelican/pelican-themes"
40
 PELICAN_THEMES_REPO="https://github.com/getpelican/pelican-themes"
40
 PELICAN_PLUGINS_REPO="https://github.com/getpelican/pelican-plugins"
41
 PELICAN_PLUGINS_REPO="https://github.com/getpelican/pelican-plugins"
515
     fi
516
     fi
516
     pip uninstall pelican
517
     pip uninstall pelican
517
     remove_certs $PELICAN_DOMAIN_NAME
518
     remove_certs $PELICAN_DOMAIN_NAME
519
+
520
+    function_check remove_onion_service
521
+    remove_onion_service htmly ${PELICAN_ONION_PORT}
518
 }
522
 }
519
 
523
 
520
 function create_pelican_conf {
524
 function create_pelican_conf {
782
 
786
 
783
     pelican_editor_config
787
     pelican_editor_config
784
 
788
 
789
+    PELICAN_ONION_HOSTNAME=$(add_onion_service pelican 80 ${PELICAN_ONION_PORT})
790
+    set_completion_param "pelican onion domain" "$PELICAN_ONION_HOSTNAME"
791
+
785
     install_pelican_website
792
     install_pelican_website
786
     install_pelican_website_onion
793
     install_pelican_website_onion
787
 
794