Ver código fonte

Removed password again

Dennis Schwerdel 8 anos atrás
pai
commit
04c3af14e2
3 arquivos alterados com 1 adições e 5 exclusões
  1. 1 2
      config.xml
  2. 0 1
      nginx.conf
  3. 0 2
      start.sh

+ 1 - 2
config.xml

@@ -1,9 +1,8 @@
 <configuration version="19">
     <gui enabled="true" tls="false" debugging="false">
+        <insecureAdminAccess>true</insecureAdminAccess>
         <address>0.0.0.0:3000</address>
         <theme>default</theme>
-	<user>admin</user>
-        <password>$2a$10$onEZNvFhasmJMq7ugGDIJekK0mZ9YByNK0b1p8kJPtXL.ELVrsolm</password>
     </gui>
     <options>
         <listenAddress>tcp://:22000</listenAddress>

+ 0 - 1
nginx.conf

@@ -33,7 +33,6 @@ http {
         error_log /dev/stderr warn;
         listen 8000 default_server;
         server_name _;
-        proxy_set_header Authorization "Basic YWRtaW46YWRtaW4=";
         proxy_read_timeout 120s;
         location /check {
             proxy_pass http://localhost:3000/syncthing/app.js;

+ 0 - 2
start.sh

@@ -20,8 +20,6 @@ ldap_server cloudron {
 EOF
 
 sed -e 's,<listenAddress>.*</listenAddress>,<listenAddress>tcp://:22000</listenAddress>,' -i /app/data/config/config.xml
-sed -e 's,<user>.*</user>,<user>admin</user>,' -i /app/data/config/config.xml
-sed -e 's,<password>.*</password>,<password>$2a$10$onEZNvFhasmJMq7ugGDIJekK0mZ9YByNK0b1p8kJPtXL.ELVrsolm</password>,' -i /app/data/config/config.xml
 sed -e 's,<gui .*>,<gui enabled="true" tls="false" debugging="false">,' -i /app/data/config/config.xml
 
 export STNODEFAULTFOLDER=1 STNOUPGRADE=1