How to customize supabase (selfhosted on docker) email? - docker

Hi I can't change the template of the emails sent from supabase, I've tried everything.
It works great but I would like to be able to customize it.
the non-self hosted solution (as described here is different)
email screen
Is there a way to edit this email template?
I searched on the documentation in general, googling and looking for solutions on github. I would like a solution on how to set it up, currently I have not been able to get results.

There's one - to config GoTrue (after reading documentation>e-mail) through env:
Here's the example from self-hosting tutorial:
# Email templates
# Invite user - provide a URL to a HTML or Text template
GOTRUE_MAILER_TEMPLATES_INVITE=https://example.com/path/to/your/invite/template.html
# Confirm registration - provide a URL to a HTML or Text template
GOTRUE_MAILER_TEMPLATES_CONFIRMATION=https://example.com/path/to/your/confirmation/template.html
# Password recovery - provide a URL to a HTML or Text template
GOTRUE_MAILER_TEMPLATES_RECOVERY=https://example.com/path/to/your/password_reset/template.HTML
# Magic link - provide a URL to a HTML or Text template
GOTRUE_MAILER_TEMPLATES_MAGIC_LINK=https://example.com/path/to/your/magic_link/template.html

Related

Encrypted URL sent from Jenkins email plugin

Configured Jenkins to send emails after every build run, the email content contains a report URL, it was all working fine from many days but recently what we noticed that the URL in email content is different though once we click on the URL, it shows the proper report something like this.
URL mentioned in the email:
http://IP:8080/job/Test/lastCompletedBuild/reports/overview.html
URL is shown in the actual mail
https://urldefense.proofpoint.com/v2/url?u=http-3A__IP-3A8080_job__overview-2Dfeatures.htm.....
Is there any way I can revert this to send the same URL as configured in default content?
Thank you.
Your company installed Proofpoint's Targeted Attack Protection, hence the rewritten URL points to proofpoint.com. There might be a way to whitelist your Jenkins in Proofpoint, but I'm pretty sure that there is nothing to be done in Jenkins.
This will be your mail server rewriting urls for spam/phishing protection

Using Orbeon Forms "List Forms Attachments" API

We have the requirement to fetch an attachment to an Orbeon form from a simple automation script. We found the "List Forms Attachments" API (https://doc.orbeon.com/form-runner/api/persistence/list-form-data-attachments.html) and are trying to call it using a simple "curl" script that runs on the same host as the Orbeon Tomcat instance:
curl -v "http://localhost:8080/orbeon/fr/service/$app/$form/attachments?document=$docid"
This returns an HTTP 403 (Forbidden), and even after reading whatever doc we can find on Orbeon security, we're still scratching our heads over how to configure Orbeon. Is there a simple configuration example showing an Orbeon configuration that would allow the API to be called from a local script like ours? We are running Orbeon CE 2017.1.
If getting this API to work is an ordeal, the other option we'd consider would be a database solution. We have Orbeon running on a MySQL persistence layer, and the same script we're using also has access to this database. Is there an easy way to take a submitted form's XML and fetch the attachment for a given form field?
We see in the submitted form's XML that the attachment tag looks like this:
<File1 filename="Original Filename.doc" mediatype="application/msword" size="14236">
file:/tmp/tomcat7-tomcat7-tmp/xforms_upload_7266596219758922423.tmp?filename=Original+Filename+doc&mediatype=application%2Fmsword&size=14236&mac=fc2febb1227e93643a048fbb02abc16bba346531
</File1>
When we scan the orbeon_form_data_attach database table, we see a row with the file content we expect, but the file_name column doesn't match the file information in the form's XML above...in this example, the file_name on the database is 1af8cd16367470362e13f77e679c0ae590e1f4a5.bin. Some of our forms have multiple attachments, and there doesn't seem to be a direct way to go from the form XML to the file_name in the database table.
Either of these solutions would be fine for us - we just need a way to get the attachments for a form from a simple script.
For reference, the relevant documentation is Authorization of Pages and Services.
You can, although this is not to be done for production but only testing and development, open all services without authentication. See this section. Otherwise, you need to setup an authorization service.

Jira Custom field mediawiki internal links not working

I have a custom field named as workaround in Jira. Whenever I put a mediawiki link into it with the alias it does work for ex: [[Documentation:Product:Manual:TopicName|alias]] is the text in my workaround field. it should get converted to link but its not happening
It sounds like you need to use a URL, not MediaWiki markup. As Tgr says, you shouldn't expect MediaWiki syntax to work in software that isn't MediaWiki. For how to make links in JIRA, take a look at the the JIRA wiki docs.

PHPlist urls in email body changed to clicktrack urls

I have clicktrack turned off, however text only messages with url links in them are having the url's changed to a clicktrack url's. That is they point back to "mywebsite.com" and not the intended url link.
I have searched google and found people (this year 2014) having similar problems but no answers.
All the clicktrack settings in the config files are correct "off" (does not seem that complicated)
changing them to html ref just leaves me with the href label which is not clickable (might be a clue but not sure), and I actually want to send text email not html.
Has anyone else had this problem, or any ideas on solutions?
I added the following settings to try to solve and it seems it works
# Usertrack
# Usertrack is used to track views or opens of campaigns. This only works in HTML messages
# as it relies on a little image being pulled from the phpList system to update the database
# To add it to your campaigns, you need to add [USERTRACK] somewhere.
# From version 3 onwards, this is automatically done with the following setting. If you do not
# want it, you can switch it off here, by uncommenting the next line
define('ALWAYS_ADD_USERTRACK',0);
# Click tracking
# If you set this to 1, all links in your emails will be converted to links that
# go via phpList. This will make sure that clicks are tracked. This is experimental and
# all your findings when using this feature should be reported to mantis
# for now it's off by default until we think it works correctly
define('CLICKTRACK',0);

Programmatically modify url startpage?

I'd like to modify the page where the user ends up if he isn't recognized.
I'm using a token login system so they're redirected to /c/portal/login by a different system.
I'm having some issues with response.sendRedirect (posted another question for that), so I was hoping I could programmatically modify the url startpage, but so far I haven't found something that has the same function as last_path but then for the startpage in webkeys.
Any input would be appreciated.
Create a hook with a custom "Login Post Action". You'll find some outdated information here (it speaks about the ext-environment, but you should do it in a hook). Liferay IDE or Liferay Developer Studio will help with the generation of such a hook. The code you find in the Wiki should be ok. Otherwise google for more samples (Login Post Action is the keyword: This is code that will be executed just after a successful login)

Resources