N
N
Nik Gubin2016-08-26 05:55:39
Nginx
Nik Gubin, 2016-08-26 05:55:39

How to set up a domain in nginx on port 22 for GIT?

Good early morning friends!
I set up a git repository on the server, because I'm tired of throwing zip archives between my jobs.
Everything works, I'm happy, BUT! I want to be completely happy, I want to set up work not through an IP address, but through a domain. This is real? If so, please tell me the optimal settings so that security issues and various subtleties are taken into account. On the nginx server, I did not encounter such an issue.
I will be grateful for good materials or answers!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Назар Мокринский, 2016-08-26
@nazarpc

Nginx ту не при чем. За домен отвечает DNS - прописываете IP и всё, если для сайта он прописан, то SSH по домену вместо IP уже должен работать.

H
hdhog, 2016-08-26
@serjius

поставь gogs и веб морда будет и по ssh будет работать. а вообще гит использует ssh с сервера.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question