sibbr / explorador

Portal de dados de Biodiversidade do SiBBr
www.sibbr.gov.br/portal
MIT License
1 stars 0 forks source link

Confugure smtp email server #8

Closed tigreped closed 10 years ago

tigreped commented 10 years ago

Configure e-mail functionallity according to SiBBr needs, in order to provide proper Download behaviour.

tigreped commented 10 years ago

On portal-config.properties: email.smtpServer=yoursmtp.domain.com.br email.port=yourport email.hashAddress=false

The path of the folder to store the generated content. Make sure the user who starts Tomcat application has access to read/write in this folder:

searchServiceConfig.generatedContentFolder=/var/www/download

The public URL to reach the generated content. Must ends with a slash.

searchServiceConfig.publicDownloadURL=http://yourdomain.com.br/download

From email to use to send emails

searchServiceConfig.emailFrom=email@yourdomain.com.br

E-mail configurations on httpd.conf for apache: <VirtualHost :80> ServerName yourdomain.com.br ServerAlias .yourdomain.com.br

Skip download:

Alias /download /var/www/download [path to local filesystem on server]

Skip /download:

ProxyPass /download !

ProxyRequests off ProxyPreserveHost on

<Proxy *> Order deny,allow Allow from all