Jump to content

Norton Barbieri

Members
  • Posts

    5
  • Joined

  • Last visited

Posts posted by Norton Barbieri

  1. I managed to make it work by using the following configurations:

     

    app.ini:

    ...

    [server]
    APP_DATA_PATH    = /data/gitea
    PROTOCOL         = http
    DOMAIN           = mygitdomain.duckdns.org
    HTTP_PORT = 3000
    ENABLE_LETSENCRYPT = true
    LETSENCRYPT_ACCEPTTOS = true
    LETSENCRYPT_DIRECTORY = https
    OFFLINE_MODE     = false

    ...

     

    subdomain.conf

    ...

    server {
        listen 443 ssl;
        listen [::]:443 ssl;

        server_name mygitdomain.*;

        include /config/nginx/ssl.conf;

        client_max_body_size 0;

     

        location / {
         

            include /config/nginx/proxy.conf;
            resolver 127.0.0.11 valid=30s;
            set $upstream_app gitea;
            set $upstream_port 3000;
            set $upstream_proto http;
            proxy_pass http://[LOCAL IP OF THE SERVER]:3000;

        }
    }
     

    ...

  2. I`m having a similar issue as above.

    I configured Gitea to work on my local network just fine, but once I tried configuring it to work by letsencrypt using the configuration provided by the website it does not work:

     

    app.ini:

    ...

    [server]
    APP_DATA_PATH    = /data/gitea
    PROTOCOL         = https
    DOMAIN           = mygitdomain.duckdns.org
    SSH_DOMAIN       = mygitdomain.duckdns.org
    ENABLE_LETSENCRYPT = true
    LETSENCRYPT_ACCEPTTOS = true
    LETSENCRYPT_DIRECTORY = https
    LETSENCRYPT_EMAIL = [email protected]
    HTTP_PORT        = 3000
    ROOT_URL         = https://mygitdomain.duckdns.org/
    DISABLE_SSH      = true
    SSH_PORT         = 22
    SSH_LISTEN_PORT  = 22
    OFFLINE_MODE     = false

    ...

     

    subdomain.conf

     

    ...

    server {
        listen 443 ssl;
        listen [::]:443 ssl;

        server_name mygitdomain.*;

        include /config/nginx/ssl.conf;

        client_max_body_size 0;

     

        location / {

            include /config/nginx/proxy.conf;
            resolver 127.0.0.11 valid=30s;
            set $upstream_app gitea;
            set $upstream_port 3000;
            set $upstream_proto http;
            proxy_pass $upstream_proto://$upstream_app:$upstream_port;

        }
    }

    ...

     

    any suggestions?

     

    the Gitea log spits out:

    ...

    [36m2020/11/29 02:40:54 [0m[32m...s/graceful/server.go:79:[32mListenAndServe()[0m [1;31m[E][0m Unable to GetListener: [1mlisten tcp 0.0.0.0:80: bind: permission denied[0m
    [36m2020/11/29 02:40:54 [0m[32mcmd/web.go:87:[32mfunc1()[0m [1;41m[F][0m Failed to start the Let's Encrypt handler on port [1m80[0m: [1mlisten tcp 0.0.0.0:80: bind: permission denied[0m

    ...

     

    I think there is something wrong as Gitea is trying to bind port 80 and fails. I dont understand why its trying to.

     

×
×
  • Create New...