could godoxy run not in 80/443 #87

Closed
opened 2025-12-29 09:22:48 +01:00 by adam · 9 comments
Owner

Originally created by @coracoo on GitHub (Jun 3, 2025).

Hello, is there anyway donot use 80/443? cause I use NAS at home ,and there is no 80/443 for me .

Also, I try to use another port in .env such like 38080/38443

# Proxy listening address
GODOXY_HTTP_ADDR=:38080
GODOXY_HTTPS_ADDR=:38443

# add two environments for http
GODOXY_JWT_SECURE=false
GODOXY_API_JWT_SECURE=false

but only http port works.
Image

And I try to login the domin ex.XXX.com:38080,it returns no such route: godoxy

Image

Originally created by @coracoo on GitHub (Jun 3, 2025). Hello, is there anyway donot use 80/443? cause I use NAS at home ,and there is no 80/443 for me . Also, I try to use another port in .env such like 38080/38443 ``` # Proxy listening address GODOXY_HTTP_ADDR=:38080 GODOXY_HTTPS_ADDR=:38443 # add two environments for http GODOXY_JWT_SECURE=false GODOXY_API_JWT_SECURE=false ``` but only http port works. ![Image](https://github.com/user-attachments/assets/5d0e945c-bb45-4695-9de2-62c58b434dc9) And I try to login the domin ex.XXX.com:38080,it returns `no such route: godoxy` ![Image](https://github.com/user-attachments/assets/76ed2f40-f38b-4174-87dd-abe69c44d3e0)
adam closed this issue 2025-12-29 09:22:48 +01:00
Author
Owner

@yusing commented on GitHub (Jun 3, 2025):

You must have autocert configured in order to use https.

You must have WebUI running, with container name (or proxy.alias set to godoxy) in order to access via godoxy.domain.com. Also,
network_mode is required to set to host.

@yusing commented on GitHub (Jun 3, 2025): You must have autocert configured in order to use https. You must have WebUI running, with container name (or `proxy.alias` set to godoxy) in order to access via godoxy.domain.com. Also, `network_mode` is required to set to `host`.
Author
Owner

@coracoo commented on GitHub (Jun 3, 2025):

I use the default compose.yaml , and only change .env, now this is my config.yaml , still not work

autocert:
  provider: local
acl:
  default: allow # or deny (default: allow)
  allow_local: true # or false (default: true)
entrypoint:
  middlewares:
    - use: CloudflareRealIP
    - use: ModifyResponse
      set_headers:
        Access-Control-Allow-Methods: GET, POST, PUT, PATCH, DELETE, OPTIONS, HEAD
        Access-Control-Allow-Headers: "*"
        Access-Control-Allow-Origin: "*"
        Access-Control-Max-Age: 180
        Vary: "*"
        X-XSS-Protection: 1; mode=block
        Content-Security-Policy: "object-src 'self'; frame-ancestors 'self';"
        X-Content-Type-Options: nosniff
        X-Frame-Options: SAMEORIGIN
        Referrer-Policy: same-origin
        Strict-Transport-Security: max-age=63072000; includeSubDomains; preload
  access_log:
    format: combined
    path: /app/logs/entrypoint.log

providers:
  # include files are standalone yaml files under `config/` directory
  #
  # include:
  #   - file1.yml
  #   - file2.yml

  docker:
    # $DOCKER_HOST implies environment variable `DOCKER_HOST` or unix:///var/run/docker.sock by default
    local: $DOCKER_HOST

and also I put .pem in certs , tree -L 2

├── certs
│   ├── godoxy.XXX.com.key
│   └── godoxy.XXX.com.pem

Image

@coracoo commented on GitHub (Jun 3, 2025): I use the default compose.yaml , and only change `.env`, now this is my `config.yaml` , still not work ``` autocert: provider: local acl: default: allow # or deny (default: allow) allow_local: true # or false (default: true) entrypoint: middlewares: - use: CloudflareRealIP - use: ModifyResponse set_headers: Access-Control-Allow-Methods: GET, POST, PUT, PATCH, DELETE, OPTIONS, HEAD Access-Control-Allow-Headers: "*" Access-Control-Allow-Origin: "*" Access-Control-Max-Age: 180 Vary: "*" X-XSS-Protection: 1; mode=block Content-Security-Policy: "object-src 'self'; frame-ancestors 'self';" X-Content-Type-Options: nosniff X-Frame-Options: SAMEORIGIN Referrer-Policy: same-origin Strict-Transport-Security: max-age=63072000; includeSubDomains; preload access_log: format: combined path: /app/logs/entrypoint.log providers: # include files are standalone yaml files under `config/` directory # # include: # - file1.yml # - file2.yml docker: # $DOCKER_HOST implies environment variable `DOCKER_HOST` or unix:///var/run/docker.sock by default local: $DOCKER_HOST ``` and also I put .pem in certs , `tree -L 2` ``` ├── certs │   ├── godoxy.XXX.com.key │   └── godoxy.XXX.com.pem ``` ![Image](https://github.com/user-attachments/assets/2a2f6a22-3c44-40f0-a489-4c9090c7de1c)
Author
Owner

@yusing commented on GitHub (Jun 3, 2025):

Specify key_path and cert_path like this:

autocert:
  provider: local
  cert_path: certs/godoxy.XXX.com.pem
  key_path: certs/godoxy.XXX.com.key

預設是certs/cert.crt, certs/priv.key

@yusing commented on GitHub (Jun 3, 2025): Specify `key_path` and `cert_path` like this: ```yaml autocert: provider: local cert_path: certs/godoxy.XXX.com.pem key_path: certs/godoxy.XXX.com.key ``` 預設是`certs/cert.crt`, `certs/priv.key`
Author
Owner

@yusing commented on GitHub (Jun 3, 2025):

https://docs.godoxy.dev/Certificates-and-domain-matching

@yusing commented on GitHub (Jun 3, 2025): https://docs.godoxy.dev/Certificates-and-domain-matching
Author
Owner

@coracoo commented on GitHub (Jun 3, 2025):

omg! XD, it works , thx ! it's a wonderful app.

I would share it in my blog .

Image

@coracoo commented on GitHub (Jun 3, 2025): omg! XD, it works , thx ! it's a wonderful app. I would share it in my blog . ![Image](https://github.com/user-attachments/assets/4c3e09df-82d5-4c06-8240-d90bb2d4493e)
Author
Owner

@yusing commented on GitHub (Jun 3, 2025):

Amazing, thanks. Could you share with me the link to the post after that?

@yusing commented on GitHub (Jun 3, 2025): Amazing, thanks. Could you share with me the link to the post after that?
Author
Owner

@coracoo commented on GitHub (Jun 3, 2025):

of course, I will share the URL when I complete it

@coracoo commented on GitHub (Jun 3, 2025): of course, I will share the URL when I complete it
Author
Owner

@death4444 commented on GitHub (Oct 29, 2025):

天哪!XD,它有效,谢谢 !这是一个很棒的应用程序。

我会在我的博客中分享它。

Image

哈哈,活捉ZDM大佬,我也是看了你贴才关注到这个好项目的,但一般人真部署不了。

@death4444 commented on GitHub (Oct 29, 2025): > 天哪!XD,它有效,谢谢 !这是一个很棒的应用程序。 > > 我会在我的博客中分享它。 > > ![Image](https://github.com/user-attachments/assets/4c3e09df-82d5-4c06-8240-d90bb2d4493e) 哈哈,活捉ZDM大佬,我也是看了你贴才关注到这个好项目的,但一般人真部署不了。
Author
Owner

@yusing commented on GitHub (Oct 29, 2025):

天哪!XD,它有效,谢谢 !这是一个很棒的应用程序。

我会在我的博客中分享它。

Image

哈哈,活捉ZDM大佬,我也是看了你贴才关注到这个好项目的,但一般人真部署不了。

其實CLI環境下就只是跑個安裝腳本的事而已,OnePanel, CasaOS等等反而會讓事情變複雜...

@yusing commented on GitHub (Oct 29, 2025): > > 天哪!XD,它有效,谢谢 !这是一个很棒的应用程序。 > > > > 我会在我的博客中分享它。 > > > > ![Image](https://github.com/user-attachments/assets/4c3e09df-82d5-4c06-8240-d90bb2d4493e) > > 哈哈,活捉ZDM大佬,我也是看了你贴才关注到这个好项目的,但一般人真部署不了。 其實CLI環境下就只是跑個安裝腳本的事而已,OnePanel, CasaOS等等反而會讓事情變複雜...
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/godoxy#87