yuki-kimoto / gitprep

Portable GitHub system into your own server
http://gitprep.yukikimoto.com/
906 stars 118 forks source link

https for clone/push URL #180

Closed bilogic closed 3 years ago

bilogic commented 3 years ago

image

Where can I modify this to be https? Thank you.

yuki-kimoto commented 3 years ago

If the site is https, the part become https automatically.

If you check it in development environment. Do the following.

export MOJO_LISTEN=https://*:3000
./morbo
bilogic commented 3 years ago

If the site is https, the part become https automatically. If you check it in development environment. Do the following.

export MOJO_LISTEN=https://*:3000
./morbo

How about production? I'm still getting only http:// only Mine as follows. Does Gitprep have to be https? I'm confused, there is no cert there..

# Gitprep.conf

[hypnotoad]
;;; Listen URL (default: http://*:10020)
;listen=http://*:10020

# Apache

    ProxyRequests Off
    ProxyPreserveHost On
    # ProxyPass / http://localhost:3000/
    # ProxyPassReverse / http://localhost:3000/
    ProxyPass / http://localhost:10020/
    ProxyPassReverse / http://localhost:10020/
    RequestHeader set X-Forwarded-Proto https
bilogic commented 3 years ago

Ok, found the issue, I did not enable reverse_proxy.on = 1