mirror of
https://gitee.com/y_project/RuoYi-Cloud.git
synced 2026-02-05 00:11:57 +08:00
Compare commits
4 Commits
dcaaf7d256
...
f21d239248
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f21d239248 | ||
|
|
a6bcebb62b | ||
|
|
1cb262daa3 | ||
|
|
50304ad869 |
@@ -29,7 +29,7 @@ http {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# 避免actuator暴露
|
# 避免actuator暴露
|
||||||
if ($request_uri ~ "/actuator") {
|
if ($uri ~ "/actuator") {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
13
ruoyi-auth/Dockerfile
Normal file
13
ruoyi-auth/Dockerfile
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
FROM openjdk:8-jdk
|
||||||
|
LABEL maintainer=tangang
|
||||||
|
|
||||||
|
|
||||||
|
#启动自行加载 服务名-prod.yml配置
|
||||||
|
ENV PARAMS="--server.port=8080 --spring.profiles.active=dev --spring.cloud.nacos.server-addr=
|
||||||
|
his-nacos.oneos-tg:8848 --spring.cloud.nacos.config.file-extension=yml"
|
||||||
|
RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone
|
||||||
|
|
||||||
|
COPY target/*.jar /app.jar
|
||||||
|
EXPOSE 8080
|
||||||
|
|
||||||
|
ENTRYPOINT ["/bin/sh","-c","java -Dfile.encoding=utf8 -Djava.security.egd=file:/dev/./urandom -jar /app.jar ${PARAMS}"]
|
||||||
Reference in New Issue
Block a user