Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Markdown Macro - get authorized/private page from GitLab (or any) Edited

Can smbdy suggest any way to import my `` from private repo (GitLab, GitHub, BitBucket or any).

I mean, Confluence need a user (addon-*), or any config with credentials/endpoint - to auth on this repo and then import markdown pages. TY


There are few free plugins, but there is no "auth" options:
- confluence-markdown-macro
- marked

Markdown Extensions for Confluence - supports only GitHub and BitBucket, and is expensive for me.


3 answers

Hi, you may try to use nginx proxy wich add read_access token (repository_read) to markdown request for get Readme from private repo:


http {

# Gitlab address
upstream gitlab {
server gitlab.local:443;

server {
listen 80;
server_name confluence;

location ~* "/api/([v0-9]+)/projects/([0-9]+)/repository/files/" {
proxy_pass https://gitlab;
proxy_set_header PRIVATE-TOKEN TOKEN;

And then use URL in macro:




did you get answer? 

found this one, maybe someone can check about combining: any markdown-plugin + any GitLab plugin:

-> smart-git-integration-for-jira

Markdown Macro plugin author here. 👋

We don't currently have plans to add support for authenticated remote connections in the short term. However, this is a free, and open source plugin. You're welcome to add it via a pull request at and we will be happy to accept it.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Marketplace Apps & Integrations

🤺 Atlympic Event: Partnerships

Hello Community!  Quick disclaimer: We are running a contest on Community (The Atlympics!) from July 23rd - August 8th of 2021. If you are interested in participating in this contest (prizes! ...

56 views 0 2
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you