You are not logged in.

#1 2024-07-08 21:04:45

AngelBePro
Member
From: Bulgaria
Registered: 2023-07-27
Posts: 52

Relative URL for gitlab using nginx

Hi, hope I'm in the right section, but I don't know how to host gitlab under a relative url. I tried the guide provided by gitlab, since there is no guide in the archwiki for gitlab for a source build (the linux package one used gitlab.rb which didn't work too). That didn't work and it still redirected me to the root of my domain. I just want every redirect gitlab creates to be under /gitlab instead of root. I can make a rewrite rule but I think it's inconvenient. If it is the last resort then I will use it.


Thanks for helping me!
MB: MSI B560M-A PRO
CPU: i5-10400F
GPU: MSI RTX 3070 Gaming Z Trio

Offline

#2 2024-07-09 12:43:26

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 12,374

Re: Relative URL for gitlab using nginx


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building to complicated ?
Try clean chroot manager by graysky

Offline

#3 2024-07-09 15:16:23

AngelBePro
Member
From: Bulgaria
Registered: 2023-07-27
Posts: 52

Re: Relative URL for gitlab using nginx

I'm sorry to say i decided to switch to ubuntu since i find hosting on arch is not documented enough. I'll leave this topic open for anyone else wanting to find a solution. And this will work, but as I said I wanted nginx redirects to be the last resort. I'm sure there is a way to setup gitlab with a relative url under arch linux.


Thanks for helping me!
MB: MSI B560M-A PRO
CPU: i5-10400F
GPU: MSI RTX 3070 Gaming Z Trio

Offline

#4 2024-07-10 10:15:16

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 12,374

Re: Relative URL for gitlab using nginx

The best answer in that SO thread is considered 'disabling redirects' .

I do think this is a nginx / webserver specific question , but you should use what you feel best about.

Please prepend [Solved] , [Abandoned] , [gave up] or what you feel is apropriate to the thread title.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building to complicated ?
Try clean chroot manager by graysky

Offline

Board footer

Powered by FluxBB