eclipse / openvsx

An open-source registry for VS Code extensions
https://open-vsx.org/
Eclipse Public License 2.0
1.22k stars 132 forks source link

web click the publish button, pending. #839

Closed heliping closed 9 months ago

heliping commented 9 months ago

I deployed the 0.9.5 in my host, but when click the publish button, no response. just some cors error the error cause by url : http://172.22.100.152:8080/user image

my docker-compose

version: "3.9"
services:
  openvsx-webui:
    image: ghcr.io/eclipse/openvsx-webui:v0.9.5
    ports:
      - "3000:3000"
    depends_on:
      openvsx-server:
        condition: service_healthy
  openvsx-server:
    image: ghcr.io/eclipse/openvsx-server:v0.9.5
    ports:
      - "8080:8080"
    healthcheck:
      test: ["CMD-SHELL", "curl http://openvsx-server:8080"]
      interval: 10s
      timeout: 10s
      retries: 6
    volumes:
      - ./config/:/home/openvsx/server/config/
    depends_on:
      elasticsearch:
        condition: service_healthy
      postgres:
        condition: service_healthy
  elasticsearch:
    image: elasticsearch:7.17.1
    environment:
      - xpack.security.enabled=false
      - discovery.type=single-node
    ports:
      - "9200:9200"
      - "9300:9300"
    healthcheck:
      test: ["CMD-SHELL", "curl http://localhost:9200/_cluster/health?wait_for_status=green"]
      timeout: 60s
  postgres:
    image: postgres:10.17-alpine
    environment:
      - POSTGRES_PASSWORD=postgres
    ports:
      - "5432:5432"
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U postgres"]
      interval: 10s
      timeout: 10s
      retries: 6
networks:
  default:
    name: openvsx-network

application:

server:
  address: 0.0.0.0
  port: 8080
  shutdown: graceful
  compression:
    enabled: true
    mime-types: text/html,text/plain,text/css,application/javascript,application/json,text/xml,application/xml,application/xml+rss,text/javascript
    min-response-size: 1024
spring:
  cache:
    jcache:
      config: classpath:ehcache.xml
  datasource:
    url: jdbc:postgresql://postgres:5432/
    username: postgres
    password: postgres
    hikari:
      maximum-pool-size: 10
      leak-detection-threshold: 30000
  flyway:
    baseline-on-migrate: false
  jpa:
    open-in-view: false
    properties:
      hibernate:
        dialect: org.hibernate.dialect.PostgreSQLDialect
  resources:
    cache:
      cachecontrol:
        max-age: 4h
        cache-public: true
  session:
    store-type: jdbc
  lifecycle:
    timeout-per-shutdown-phase: 10s
  security:
    oauth2:
      client:
        registration:
          github:
            client-id: 21d19bf6bea4c2b86adf
            client-secret: 55fe40e621aabafc81b0b2d7860ef4ed55881bb3
management:
  server:
    port: 8081
  health:
    probes:
      enabled: true
org:
  jobrunr:
    job-scheduler:
      enabled: true
    background-job-server:
      enabled: true
      worker-count: 2
    dashboard:
      enabled: false
    database:
      type: sql
    miscellaneous:
      allow-anonymous-data-usage: false
bucket4j:
  enabled: false
ovsx:
  webui:
    frontendRoutes: "/extension/**,/namespace/**,/user-settings/**,/admin-dashboard/**,/about,/publisher-agreement-*,/terms-of-use"
  elasticsearch:
    host: elasticsearch:9200
    enabled: true
    ssl: false
    relevance:
      rating: 0.2
      downloads: 1.0
      timestamp: 3.0
heliping commented 9 months ago

i configed the web.url, the function is ok.