[Support] GitLab-CE


245 posts in this topic Last Reply

Recommended Posts

On 3/19/2018 at 7:38 PM, CreZo said:

 

Hey there,

 

here is my nginx conf:

 

    #GitLab
    location /gitlab {
    include /config/nginx/proxy.conf;
    proxy_pass http://192.168.1.25:9080;
  }

 

extra params:

 

--env GITLAB_OMNIBUS_CONFIG="external_url 'http://unraid:9080/'"

 

I've got already a working domain  https://mydomain.bla and I want to open gitlab over https://mydomain.bla/gitlab

 

Are you using the exernal letsencrypt/nginx docker or the built in one to access gitlab? I run gitlab from it's own subdomain and best practice is to do just that, if at all possible it would be easier for you to change your config to git.mydomain.bla

 

From what I understand, your wanting to change the relative root path for gitlab, it's not something I've done but going by the link below you just need to change your setting to: 

 

--env GITLAB_OMNIBUS_CONFIG="external_url 'https://mydomain.bla:9080/gitlab"

 

If that doesn't work, try removing the port number and giving nginx it's own param to listen on a different port. I know the doco says it's supported but I've always run mine separately

 

--env GITLAB_OMNIBUS_CONFIG="external_url 'https://mydomain.bla/gitlab'"; nginx['listen_port'] = 9080;

 

 

Official gitlab support doc, using the built in nginx server. 

https://docs.gitlab.com/omnibus/settings/configuration.html#configuring-a-relative-url-for-gitlab

 

 

Link to post
  • Replies 244
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

Thanks to thomast_88 for setting up this docker    I've set it up and muddled through learning git at the same time and just wanted to post a config I've came up with to let you use the "Linu

I've got this in my nginx config (in proxy-confs/gitlab-ce.subdomain.conf): server { listen *:80; server_name registry.subdomain.duckdns.org; server_tokens off; return 301 https://$http_h

GitLab Community Edition docker image based on the Omnibus package. I just created a template for this. It's pretty easy to get up and running, as this docker contains all necessary dependencies alrea

Posted Images

  • 2 weeks later...
On 12/03/2018 at 6:56 AM, opticon said:

4. Run the script manually and don’t close the window until you see the text: “Backup has completed’. Go to the folder in your unraid SSH session and verify the files where created through SSH under /mnt/user/appdata/gitlab-ce/backups

 

A small point: you'll need to edit the docker and add a path mapping container path /backups to /mnt/user/appdata/gitlab-ce/backups before running the script, or you won't be able to see the backups :)

Link to post
On 3/30/2018 at 9:10 PM, ElectricBadger said:

 

A small point: you'll need to edit the docker and add a path mapping container path /backups to /mnt/user/appdata/gitlab-ce/backups before running the script, or you won't be able to see the backups :)

 

I was testing you all to see if you followed the instructions xD I do have that as well actually, I just forgot to put it in the instructions!

Link to post
  • 1 month later...

@thomast_88 you said you were running gitlab behind an Nginx reverse proxy? Can you post your config for that as I am having trouble getting a proxy to work? Did you need to make any changes to the gitlab.rb file?

I have seen @opticon post but I get a redirect to the IP of the unraid machine with that method!

 

Edited by cheesemarathon
Link to post
On 5/28/2018 at 7:04 PM, cheesemarathon said:

@thomast_88 you said you were running gitlab behind an Nginx reverse proxy? Can you post your config for that as I am having trouble getting a proxy to work? Did you need to make any changes to the gitlab.rb file?

I have seen @opticon post but I get a redirect to the IP of the unraid machine with that method!

 

 

So your getting the unraid Main page?

 

What port have you assigned to the gitlab HTTP and HTTPS Port? The docker ports are what you need to set the proxy_pass URL line to

 

Perhaps post your config and redacted IP's and if your using the docker in host mode or IP mode etc and we can help you from there

Link to post
5 hours ago, opticon said:

 

So your getting the unraid Main page?

 

What port have you assigned to the gitlab HTTP and HTTPS Port? The docker ports are what you need to set the proxy_pass URL line to

 

Perhaps post your config and redacted IP's and if your using the docker in host mode or IP mode etc and we can help you from there

Thanks for getting back to me! However, I finally sorted it out. I only had the following headers in my config as those were the only ones you mentioned. But with just those two it failed to proxy correctly. 

            proxy_set_header X-Forwarded-Proto https;
            proxy_set_header X-Forwarded-Ssl on;

If I instead included the proxy.conf file in my config it worked.

Link to post
  • 4 weeks later...

 

1 hour ago, Kash76 said:

Look at your gitlab.rb file

Sent from my ONEPLUS A6003 using Tapatalk
 

This is the first docker i've installed thats restricting me from accessing its config and log files. If I change the permissions is the program going to freak out?

It looks like all settings have a # in front, is this config file actually being used for anything?

Edited by Snipe3000
Link to post
 
This is the first docker i've installed thats restricting me from accessing its config and log files. If I change the permissions is the program going to freak out?
It looks like all settings have a # in front, is this config file actually being used for anything?
Those # lines are currently commented out. Take them away with the correct config and you should be set.

Sent from my ONEPLUS A6003 using Tapatalk

Link to post
  • 2 weeks later...
On 6/25/2018 at 10:38 AM, ebnerjoh said:

Hi,

 

I need more info about @thomast_88 SOCAT Docker:

 

I want to share an USB-Device from a Raspberry to a Home-Assistant Docker within Unraid. Will this work with this Docker? If yes, is there somewhere an example available?

 

Br,

Johannes

 

 

 

Yes it's possible. 

 

See this: https://community.home-assistant.io/t/rpi-as-z-wave-zigbee-over-ip-server-for-hass/23006/1 and this: https://community.openhab.org/t/share-z-wave-dongle-over-ip-usb-over-ip-using-ser2net-socat-guide/34895

Link to post
17 hours ago, starbix said:

Were you able to solve that?

 

yes by removing gitlab ?

I only have 4gb of ram on my unraid box, which apparently is less than gitlab ~wants~ requires.

Edited by zoggy
Link to post
  • 2 months later...
On 7/5/2018 at 4:56 PM, starbix said:

Were you able to solve that?

 

On 7/6/2018 at 10:26 AM, zoggy said:

 

yes by removing gitlab ?

I only have 4gb of ram on my unraid box, which apparently is less than gitlab ~wants~ requires.

 

I was able to reduce the amount of memory this container uses and fix these messages by adding the following to GITLAB_OMNIBUS_CONFIG:

postgresql['shared_buffers'] = '256MB'; sidekiq['concurrency'] = 15; prometheus_monitoring['enable'] = false;

Link to post

This docker is failing to load for me after updating it this morning. The following error is returned:
 

root@localhost:# logger 'docker command execution halted due to security violation (Bash command execution or redirection)'

The command finished successfully!

 

Link to post
11 minutes ago, Ryonez said:

This docker is failing to load for me after updating it this morning. The following error is returned:
 


root@localhost:# logger 'docker command execution halted due to security violation (Bash command execution or redirection)'

The command finished successfully!

 

Because in the extra parameters or something you are attempting to run a bash command and/or redirect the output of the docker run command somewhere else.  (and it's not related to an update of the container, but rather its a 6.6 thing) It is a security violation, and can potentially trash the host OS.  Edit the container, switch to advanced mode and post up a screenshot.

Edited by Squid
Link to post

ok.  Bug in unRaid (my fault actually).  Logic error in how its looking for a bash command, and it's picking up the semi-colon wrongly (due to the nested quotes).  

 

I won't be able to issue a PR for a couple of days to fix this issue, but in the meantime on unRaid 6.6 you can execute this command via user scripts (run once at array start) to bypass it

 

sed -i 's/function dockerRunSecurity($command) {/function dockerRunSecurity($command) {return false;/g' /usr/local/emhttp/plugins/dynamix.docker.manager/include/Helpers.php

 

Edited by Squid
Link to post
8 minutes ago, Squid said:

Actually, go to plugins / install plugin and paste this url in instead:

 

https://raw.githubusercontent.com/Squidly271/misc-stuff/master/unRaid6.6.Hot.Fix.plg

 

Very quick and dirty, FCP will complain about it, but it should do the trick for you.

 

 

Alright, that's done the trick beautifully. Thank you very much, that was an amazingly fast hotfix >.<

Do I just keep an eye out and remove it once I see the fix appear in an unRaid update, or will it remove itself when it's not needed? I haven't played with plugins in depth, so I'm not really aware of the intricacies for them.

Edited by Ryonez
Forgot the n't
Link to post
11 minutes ago, Ryonez said:

Alright, that's done the trick beautifully. Thank you very much, that was an amazingly fast hotfix >.<

Do I just keep an eye out and remove it once I see the fix appear in an unRaid update, or will it remove itself when it's not needed? I have played with plugins in depth, so I'm not really aware of the intricacies for them.

Put it this way, it was the fastest plugin I've banged together ever.  It shouldn't install on anything but 6.6.0 but mistakes are possible when I'm getting ready to leave the house for a couple of days, and will rethink the logic for the actual security routine at another time.

Edited by Squid
Link to post
1 minute ago, Squid said:

Put it this way, it was the fastest plugin I've banged together ever.  It shouldn't install on anything but 6.6.0 but mistakes are possible when I'm getting ready to leave the house for a couple of days.

So version restricted plugins will disable themselves if the versions don't match?
And hey, no sweet, I'll just keep an eye on it anyway. I hope you enjoy your time away.

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.