// nginx is available in Amazon Linux Extra topics "nginx1.12" and "nginx1" // if get this message. do this: sudo amazon-linux-extras install nginx1.12
nginx config
1
sudo vim /etc/nginx/conf.d/git.conf
git.conf port is same with docker’s gogs port setting
1 2 3 4 5 6 7 8 9 10 11 12 13
upstream git { server0.0.0.0:10080; }
server { listen80; server_name yourdomain.com;
location / { proxy_pass http://git; index index.html index.htm; } }