|
ramadda.httpheader1=<header name>:<header value> ramadda.httpheader2=<header name>:<header value> ...e.g: For specifying HSTS Strict-Transport-Security header you would do:
ramadda.httpheader1=Strict-Transport-Security:max-age=86400; includeSubDomainsOnce you restart your RAMADDA it is a good idea to check the headers, e.g. with curl:
curl -v "http://localhost:8080" > foo
ramadda.search.lucene.enabled=falseThe problem this introduces is that, once enabled, the index does not get built with past content so a search will only show newly created content. To address this you can simply go to the Admin page: Admin->Maintenance->Reindex Lucene Index and select "Reindex all". Depending on the size of your repository this may take a few minutes but once complete your searching should be good to go.
#This caches the HTML resources in memory ramadda.cachehtdocs = false #This serves up the JS and CSS files as aggregated minified files ramadda.minified=true #This uses the cdn.jsdelivr.net CDN network to deiver most of the CSS and Javascript files ramadda.cdnok=true
<home>/.ramadda/repository.propertiesadd the property:
ramadda.login.allowedips=
- Comma separated list of ip addresses (or prefixes) that are the ones where the user can login
- If blank then login is allowed from anywhere
ramadda.login.allowedips=127.0.0,201.43.72.5
- e.g.:
ramadda.user.agree= Some terms #.e.g: ramadda.user.agree= I have read and agree to the terms of service
-Dramadda.ssl.ignore=true
ramadda.admin=userid:passwordand then restart RAMADDA. This sets the password for the given userid. Note: you should remove this entry once you have reset your password.
You can also specify an administrator user id and password from the command line when starting RAMADDA. If you are running RAMADDA stand alone then just provide the arguments:
-admin <user id> <password>This creates a new user id if needed and sets the password.
If you are running RAMADDA under Tomcat then change the web.xml to pass in command line arguments using the "args" entry. This is a comma separated value list of the command line arguments that are processed by RAMADDA.
<param-name>args</param-name> <param-value>-admin,userid,password</param-value>
override.ramadda.hostname=<good host name>and place it in your ramadda home directory or plugins directory and restart ramadda. Once you are logged in go to the Admin Settings page and change the hostname then remove the properties file.
In general, you can override any property that has been set by defining a property with the "override." prefix.
ramadda.enable_hostname_mapping = trueThen add an Alias property to the entry of interest with the value:
http://your_hostname e.g.: http://boulderdata.orgIf you had different domains you can add multiple aliases -
http://www.boulderdata.orgThis will use the entry as the root when accessing the repository under the given hostname. For example, the site http://boulderdata.org/ really just maps to an entry at - https://ramadda.org/repository/entry/show?entryid=79f24329-8c98-4d15-9804-821a70bfb606. Note: when searching under the alias the whole site will be searched.
/repository/sitemap.xmlBy default this lists all of the entries under the top-level entry.
If you want specific entries in your site map then simply add an "Is in Site Map" property (Under the Add Property-> Thumbnails, Page Style, Etc.) menu for the entry or entries.
github.token=<your token>
To change the description used just create a file initdescription.txt in the RAMADDA home directory. This file, if it exists, is read by RAMADDA. You can see the default one in the source tree at:
src/org/ramadda/repository/resources/examples/initdescription.txtThis file contains 2 macros:
$To change what entries are created RAMADDA looks for a initentries.xml file in the RAMADDA home directory. The default file is:{root} - the top-level URL path $ {topid} - the ID of the root entry
src/org/ramadda/repository/resources/examples/initentries.xmlThis is just the entries xml format. The ID of the top-level entry is simply "root", e.g.:
<entries> <entry parent="root" name="Projects" type="group"> <description>A place to store projects</description> </entry> </entries>
For Tomcat set the URIEncoding: http://stackoverflow.com/questions/138948/how-to-get-utf-8-working-in-java-webapps.
If you are running mysql there are some things you need to do. Postgres and Derby seem OK out of the box.
Your Java runtime should also have the system property -Dfile.encoding=utf-8 defined.
ramadda.delete_entry_when_file_is_missing=trueBe careful with this. I (jeffmc) have seen remote file systems go down momentarily and if this had been set then all of my entries that I had harvested would have been deleted.
ramadda.logging.logactivityfile=trueWhen set various entry activities - view, file, data (providing data to a display) - are logged to a file: