Khác biệt giữa các bản “Ghi chú Gitea on Centos”
Từ ChipFC Wiki
(Tạo trang mới với nội dung “Category:Tài liệu ChipFC * https://scottlinux.com/2014/12/08/how-to-create-a-systemd-service-in-linux-centos-7/ * https://docs.gitea.io/en-us/inst…”) |
(→Run as service and autorun at startup) |
||
(Không hiển thị phiên bản của cùng người dùng ở giữa) | |||
Dòng 1: | Dòng 1: | ||
[[Category:Tài liệu ChipFC]] | [[Category:Tài liệu ChipFC]] | ||
+ | |||
+ | == Install == | ||
+ | * https://docs.gitea.io/en-us/install-from-binary/ | ||
+ | |||
+ | == Run as service and autorun at startup == | ||
* https://scottlinux.com/2014/12/08/how-to-create-a-systemd-service-in-linux-centos-7/ | * https://scottlinux.com/2014/12/08/how-to-create-a-systemd-service-in-linux-centos-7/ | ||
− | * https://docs.gitea.io/en-us/ | + | * https://docs.gitea.io/en-us/linux-service/ |
+ | |||
+ | <syntaxhighlight>sudo systemctl enable gitea | ||
+ | sudo systemctl start gitea | ||
+ | sudo systemctl status gitea | ||
+ | sudo systemctl stop gitea | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | == Forward Port on Plesk == | ||
+ | Ah, now I get it. So what you have to do in Plesk environment, navigate to your subdomain server settings and add the following additional directives for HTTP and HTTPS: | ||
+ | |||
+ | <syntaxhighlight> | ||
+ | RewriteEngine On | ||
+ | ProxyPass / http://localhost:3000/ | ||
+ | ProxyPassReverse / http://localhost:3000/ | ||
+ | </syntaxhighlight> |
Bản hiện tại lúc 22:39, ngày 9 tháng 5 năm 2018
Install
Run as service and autorun at startup
- https://scottlinux.com/2014/12/08/how-to-create-a-systemd-service-in-linux-centos-7/
- https://docs.gitea.io/en-us/linux-service/
sudo systemctl enable gitea
sudo systemctl start gitea
sudo systemctl status gitea
sudo systemctl stop gitea
Forward Port on Plesk
Ah, now I get it. So what you have to do in Plesk environment, navigate to your subdomain server settings and add the following additional directives for HTTP and HTTPS:
RewriteEngine On
ProxyPass / http://localhost:3000/
ProxyPassReverse / http://localhost:3000/