Fix: long proxy env

pull/3/head
zijiren233 2 years ago
parent 98dda736e8
commit fd8d0b078e

@ -18,6 +18,9 @@ ENV SERVER_LISTEN=0.0.0.0
ENV SERVER_PORT=8080
# only log to stdout
ENV LOG_ENABLE=false
COPY --from=builder /synctv/build/synctv /usr/local/bin/synctv
COPY entrypoint.sh /entrypoint.sh
@ -28,6 +31,6 @@ RUN chmod +x /entrypoint.sh
ENV PUID=0 PGID=0 UMASK=022
EXPOSE 8080 8080
EXPOSE 8080/tcp 8080/udp
CMD [ "/entrypoint.sh" ]

@ -1,6 +1,8 @@
version: '3.3'
services:
alist:
synctv:
image: 'synctvorg/synctv:latest'
container_name: synctv
restart: unless-stopped
ports:
- '8080:8080/tcp'
@ -10,5 +12,3 @@ services:
- PGID=0
- UMASK=022
- TZ=UTC
container_name: synctv
image: 'synctvorg/synctv:latest'

@ -1,8 +1,8 @@
package conf
type ProxyConfig struct {
MovieProxy bool `yaml:"movie_proxy" lc:"enable movie proxy (default: true)" env:"PROXY_MOVIE_PROXY"`
LiveProxy bool `yaml:"live_proxy" lc:"enable live proxy (default: true)" env:"PROXY_LIVE_PROXY"`
MovieProxy bool `yaml:"movie_proxy" lc:"enable movie proxy (default: true)" env:"PROXY_MOVIE"`
LiveProxy bool `yaml:"live_proxy" lc:"enable live proxy (default: true)" env:"PROXY_LIVE"`
}
func DefaultProxyConfig() ProxyConfig {

Loading…
Cancel
Save