ubuntu18.04通过docker安装gitea

参照docker官方文档:https://docs.docker.com/install/linux/docker-ce/ubuntu/

参照gitea官方文档:https://docs.gitea.io/zh-cn/install-with-docker/

新建oneinstack vhost,配置反向代理

location / {
        proxy_pass         http://localhost:10080;
        proxy_http_version 1.1;
        proxy_set_header   Upgrade $http_upgrade;
        proxy_set_header   Connection keep-alive;
        proxy_set_header   Host $host;
        proxy_cache_bypass $http_upgrade;
        proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header   X-Forwarded-Proto $scheme;
    }

location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|flv|mp4|ico)$ {
    expires 30d;
    access_log off;
    proxy_pass http://localhost:10080;

  }
  location ~ .*\.(js|css)?$ {
    expires 7d;
    access_log off;
    proxy_pass http://localhost:10080;
  }

发表评论

电子邮件地址不会被公开。 必填项已用*标注