mirror of
				https://github.com/optim-enterprises-bv/Mailu.git
				synced 2025-10-30 17:47:55 +00:00 
			
		
		
		
	Reinstate statistics which is currently not used. Remove unneeded line in
Dockerfile.
This commit is contained in:
		| @@ -14,10 +14,6 @@ COPY main.py ./main.py | |||||||
|  |  | ||||||
| RUN echo $VERSION >> /version | RUN echo $VERSION >> /version | ||||||
|  |  | ||||||
| #Note: This is appended so we can explicitly check if this JS file has been loaded |  | ||||||
| #by the user's internet browser when accessing the setup site. |  | ||||||
| RUN echo var jQueryMailu=\'loaded\'\; >> ./static/jquery.min.js |  | ||||||
|  |  | ||||||
| EXPOSE 80/tcp | EXPOSE 80/tcp | ||||||
| HEALTHCHECK --start-period=350s CMD curl -skfLo /dev/null http://localhost/ | HEALTHCHECK --start-period=350s CMD curl -skfLo /dev/null http://localhost/ | ||||||
| USER mailu | USER mailu | ||||||
|   | |||||||
| @@ -39,6 +39,9 @@ AUTH_RATELIMIT_IP={{ auth_ratelimit_ip }}/hour | |||||||
| AUTH_RATELIMIT_USER={{ auth_ratelimit_user }}/day | AUTH_RATELIMIT_USER={{ auth_ratelimit_user }}/day | ||||||
| {% endif %} | {% endif %} | ||||||
|  |  | ||||||
|  | # Opt-out of statistics, replace with "True" to opt out | ||||||
|  | DISABLE_STATISTICS={{ disable_statistics or 'False' }} | ||||||
|  |  | ||||||
| ################################### | ################################### | ||||||
| # Optional features | # Optional features | ||||||
| ################################### | ################################### | ||||||
|   | |||||||
| @@ -58,6 +58,13 @@ Or in plain English: if receivers start to classify your mail as spam, this post | |||||||
|   </p> |   </p> | ||||||
| </div> | </div> | ||||||
|  |  | ||||||
|  | <div class="form-check form-check-inline"> | ||||||
|  |   <label class="form-check-label"> | ||||||
|  |     <input class="form-check-input" type="checkbox" name="disable_statistics" value="True"> | ||||||
|  |     Opt-out of statistics | ||||||
|  |   </label> | ||||||
|  | </div> | ||||||
|  |  | ||||||
| <div class="form-group"> | <div class="form-group"> | ||||||
|   <label>Website name</label> |   <label>Website name</label> | ||||||
|   <input class="form-control" type="text" name="site_name" value="Mailu" required> |   <input class="form-control" type="text" name="site_name" value="Mailu" required> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Dimitri Huisman
					Dimitri Huisman