User Tools

Site Tools


raspberrypi:resin

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
raspberrypi:resin [2013/08/16 17:10] – [Changes in the ''/etc/init.d/resin'' script] rlunaroraspberrypi:resin [2013/08/17 02:45] rlunaro
Line 63: Line 63:
  
 Edit the ''/etc/init.d/resin'' script and make the changes detailed below.  Edit the ''/etc/init.d/resin'' script and make the changes detailed below. 
 +
 +You have to add an user value. In my case I've selected the root value and afterwards I will change the resin.properties to have then the user changed to resin once it is opened the port 80.
 +
 +<code>
 +START_CMD="start-all"
 +
 +USER="root"
 +</code>
  
 You must uncomment the RESIN_ROOT line: You must uncomment the RESIN_ROOT line:
Line 94: Line 102:
 </code> </code>
  
 +===== Change the resin.properties =====
 +
 +Change the following values:
 +
 +<code>
 +setuid_user   : resin
 +setuid_group  : resin
 +</code>
 +
 +<code>
 +rest_admin_ssl : true
 +</code>
 +
 +<code>
 +admin_user : PUT-AN-USERNAME-HERE
 +admin_password : {SSHA}CREATE-THE-CRYPTED-PASSWORD-AND-ADD-IT-HERE
 +</code>
 +
 +
 +===== Optional: remove unnecessary things =====
 +
 +These two clusters of below can be deleted from the configuration file whithout complains: 
 +
 +<code xml>
 +  <cluster id="memcached" xmlns:memcache="urn:java:com.caucho.memcached">
 +    <!-- define the servers in the cluster -->
 +    <server-multi id-prefix="memcached-" address-list="${memcached_servers}" po
 +      <!-- listen for the memcache protocol -->
 +      <listen port="${memcached_port?:11211}"
 +              keepalive-timeout="600s" socket-timeout="600s">
 +
 +        <memcache:MemcachedProtocol/>
 +      </listen>
 +    </server-multi>
 +  </cluster>
 +
 +  <cluster id="proxycache">
 +    <!-- define the servers in the cluster -->
 +    <server-multi id-prefix="proxycache-" address-list="${proxycache_servers}"
 +    <host id="" root-directory="proxycache">
 +      <web-app id="">
 +        <resin:HttpProxy regexp=".*">
 +          <!-- backend HTTP servers to proxy to -->
 +          <addresses>${backend_servers}</addresses>
 +        </resin:HttpProxy>
 +      </web-app>
 +    </host>
 +  </cluster>
 +
 +</code>
  
raspberrypi/resin.txt · Last modified: 2022/12/02 22:02 by 127.0.0.1