mirror of
				https://github.com/hoellen/dockerfiles.git
				synced 2025-11-04 08:17:00 +00:00 
			
		
		
		
	ghost: ability to provide a custom mail name
This commit is contained in:
		@@ -15,6 +15,8 @@ ENV GHOST_NODE_VERSION_CHECK=false \
 | 
				
			|||||||
    SMTP_PASS=12345 \
 | 
					    SMTP_PASS=12345 \
 | 
				
			||||||
    SMTP_USER=user \
 | 
					    SMTP_USER=user \
 | 
				
			||||||
    SMTP_PORT=666 \
 | 
					    SMTP_PORT=666 \
 | 
				
			||||||
 | 
					    SMTP_SENDER_MAIL=user@domain.tld \
 | 
				
			||||||
 | 
					    SMTP_SENDER_NAME=Ghost \
 | 
				
			||||||
    ENABLE_ISSO=False \
 | 
					    ENABLE_ISSO=False \
 | 
				
			||||||
    ISSO_HOST=isso.domain.tld \
 | 
					    ISSO_HOST=isso.domain.tld \
 | 
				
			||||||
    ISSO_AVATAR=false \
 | 
					    ISSO_AVATAR=false \
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -15,7 +15,9 @@ if [ "$CUSTOM_SMTP" == "True" ]; then
 | 
				
			|||||||
    sed -i -e "s/<HOST>/$SMTP_HOST/g" \
 | 
					    sed -i -e "s/<HOST>/$SMTP_HOST/g" \
 | 
				
			||||||
           -e "s/<PORT>/$SMTP_PORT/g" \
 | 
					           -e "s/<PORT>/$SMTP_PORT/g" \
 | 
				
			||||||
           -e "s/<USER>/$SMTP_USER/g" \
 | 
					           -e "s/<USER>/$SMTP_USER/g" \
 | 
				
			||||||
           -e "s/<PASS>/$SMTP_PASS/g" /ghost/config.js
 | 
					           -e "s/<PASS>/$SMTP_PASS/g" \
 | 
				
			||||||
 | 
					           -e "s/<SENDER_MAIL>/$SMTP_SENDER_MAIL/g" \
 | 
				
			||||||
 | 
					           -e "s/<SENDER_NAME>/$SMTP_SENDER_NAME/g" /ghost/config.js
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if [ ! -d /ghost/content/themes/casper ]; then
 | 
					if [ ! -d /ghost/content/themes/casper ]; then
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,7 @@
 | 
				
			|||||||
        
 | 
					        
 | 
				
			||||||
        mail: {
 | 
					        mail: {
 | 
				
			||||||
            transport: 'SMTP',
 | 
					            transport: 'SMTP',
 | 
				
			||||||
 | 
					            from: '"<SENDER_NAME>" <<SENDER_MAIL>>',
 | 
				
			||||||
            options: {
 | 
					            options: {
 | 
				
			||||||
                host: '<HOST>',
 | 
					                host: '<HOST>',
 | 
				
			||||||
                port: '<PORT>',
 | 
					                port: '<PORT>',
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user