mirror of
				https://github.com/mail-in-a-box/mailinabox.git
				synced 2025-10-25 18:00:54 +00:00 
			
		
		
		
	@joshdata squashed pull request #1398, removed some comments, and added these notes: * The old init.d script for the management daemon is replaced with a systemd service. * A systemd service configuration is added to configure permissions for munin on startup. * nginx SSL settings are updated because nginx's options and defaults have changed, and we now enable http2. * Automatic SSHFP record generation is updated to know that 22 is the default SSH daemon port, since it is no longer explicit in sshd_config. * The dovecot-lucene package is dropped because the Mail-in-a-Box PPA where we built the package has not been updated for Ubuntu 18.04. * The stock postgrey package is installed instead of the one from our PPA (which we no longer support), which loses the automatic whitelisting of DNSWL.org-whitelisted senders. * Drop memcached and the status check for memcached, which we used to use with ownCloud long ago but are no longer installing. * Other minor changes.
		
			
				
	
	
		
			29 lines
		
	
	
		
			913 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			913 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
| # -*- mode: ruby -*-
 | |
| # vi: set ft=ruby :
 | |
| 
 | |
| Vagrant.configure("2") do |config|
 | |
|   config.vm.box = "ubuntu/bionic64"
 | |
| 
 | |
|   # Network config: Since it's a mail server, the machine must be connected
 | |
|   # to the public web. However, we currently don't want to expose SSH since
 | |
|   # the machine's box will let anyone log into it. So instead we'll put the
 | |
|   # machine on a private network.
 | |
|   config.vm.hostname = "mailinabox.lan"
 | |
|   config.vm.network "private_network", ip: "192.168.50.4"
 | |
| 
 | |
|   config.vm.provision :shell, :inline => <<-SH
 | |
|     # Set environment variables so that the setup script does
 | |
|     # not ask any questions during provisioning. We'll let the
 | |
|     # machine figure out its own public IP.
 | |
|     export NONINTERACTIVE=1
 | |
|     export PUBLIC_IP=auto
 | |
|     export PUBLIC_IPV6=auto
 | |
|     export PRIMARY_HOSTNAME=auto
 | |
|     #export SKIP_NETWORK_CHECKS=1
 | |
| 
 | |
|     # Start the setup script.
 | |
|     cd /vagrant
 | |
|     setup/start.sh
 | |
| SH
 | |
| end
 |