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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,558,933
Community Members
 
Community Events
184
Community Groups

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

Edited

Can smbdy suggest any way to import my `README.md` 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/README.md" {
proxy_pass https://gitlab;
proxy_set_header PRIVATE-TOKEN TOKEN;
}
}

And then use URL in macro:

http://confluence/api/v4/projects/999/repository/files/README.md/raw?ref=master

 

 

0 votes
Boris Berenberg - Atlas Authority
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Jul 31, 2019

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 https://bitbucket.org/atlasauthority/markdown-macro-for-confluence/src and we will be happy to accept it.

did you get answer? 

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

-> smart-git-integration-for-jira

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events