-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
issue with custom url #13
Comments
Hi , thanks i appreciate this. |
In my case it was not able to retrieve the files from custom directory, it necessary needed to move to public. I've really goes on detail, but I found nothing special on Gogs documentation. |
I think that happened because web server of yourdomain.com thinks root is yourdomain.com/ but gogs thinks root is You need to serve gogs with a reverse proxy , or under a virtual host in apache. |
Thank for your help. In my case my nginx location :
and gogs app.ini ROOT_URL = http://servername/gogs/ |
try root url without the gogs part. and keep that nginx config the same as above. i have something similar. |
Hi, thank for this nice theme.
There is issues when gogs is not on root of website, for examples on http://yourhost/gogs/
In that case there is many changes I applied in way to work but I am not satisfied with my solution.
Changing the inject/head.tmpl and prepend the path (in that example prepend with /gogs/ ).
Then there is still issue because it doesn't look at custom/css/themes directory but look for public/css/themes.
So I move the dark_themes.css into public/css/themes/
Finally modify the url( ...) path into the dark_themes.css with prepend /gogs/ in way it retrieve images.
Does someone have a better solutio ?
The text was updated successfully, but these errors were encountered: