Mosaico default template - unsubscribe setting
This is how I do. You have 2 tokens: 


  {action.unsubscribeUrl} 


to unsubscribe

and 


  {action.optOutUrl}


to opt-out

I placed this code in a block at the end of the e-mail and it does the job.

&lt;p style="text-align: center;"&gt;Si vous ne souhaitez plus recevoir de message de notre part, cliquez &lt;a title="d&amp;eacute;sabonnement" href="{action.unsubscribeUrl}" target="_blank"&gt;ici pour vous d&amp;eacute;sabonner&lt;/a&gt; et &lt;a href="{action.optOutUrl}" target="_blank"&gt;ici pour vous d&amp;eacute;sinscrire de toutes les campagnes du DOMAIN&lt;/a&gt;&lt;/p&gt;


and these are the links I get in the e-mail:

https://domain.net/civicrm/mailing/unsubscribe?reset=1&amp;jid=4&amp;qid=6&amp;h=06932199472f700e

https://domain.net/civicrm/mailing/optout?reset=1&amp;jid=4&amp;qid=6&amp;h=06932199472f700e