remove unnecessary auth
This commit is contained in:
parent
e99f33d84d
commit
b3badc94ff
4 changed files with 1 additions and 4 deletions
|
@ -1,5 +1,6 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<module type="WEB_MODULE" version="4">
|
<module type="WEB_MODULE" version="4">
|
||||||
|
<component name="Go" enabled="true" />
|
||||||
<component name="NewModuleRootManager">
|
<component name="NewModuleRootManager">
|
||||||
<content url="file://$MODULE_DIR$">
|
<content url="file://$MODULE_DIR$">
|
||||||
<excludeFolder url="file://$MODULE_DIR$/temp" />
|
<excludeFolder url="file://$MODULE_DIR$/temp" />
|
||||||
|
|
|
@ -10,7 +10,6 @@ COPY public ./public
|
||||||
COPY src ./src
|
COPY src ./src
|
||||||
COPY .git ./.git
|
COPY .git ./.git
|
||||||
|
|
||||||
ARG REACT_APP_TCL_AUTH
|
|
||||||
RUN export REACT_APP_VERSION=$(git describe --always) && \
|
RUN export REACT_APP_VERSION=$(git describe --always) && \
|
||||||
export REACT_APP_DATE=$(date +"%Y-%m-%d %H:%M:%S") && \
|
export REACT_APP_DATE=$(date +"%Y-%m-%d %H:%M:%S") && \
|
||||||
yarn build
|
yarn build
|
||||||
|
|
|
@ -2,8 +2,6 @@ services:
|
||||||
app:
|
app:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
args:
|
|
||||||
REACT_APP_TCL_AUTH: changeme
|
|
||||||
restart: always
|
restart: always
|
||||||
networks:
|
networks:
|
||||||
- frontend
|
- frontend
|
||||||
|
|
|
@ -89,7 +89,6 @@ class App extends React.Component<{}, IAppState> {
|
||||||
|
|
||||||
private refresh() {
|
private refresh() {
|
||||||
const headers = new Headers();
|
const headers = new Headers();
|
||||||
headers.set("Authorization", `Basic ${process.env.REACT_APP_TCL_AUTH}`);
|
|
||||||
const tclPromise = http<ITclFilteredApi>(`https://tcl.augendre.info/tcl/stop/${this.monitoredTclStopId}`, {
|
const tclPromise = http<ITclFilteredApi>(`https://tcl.augendre.info/tcl/stop/${this.monitoredTclStopId}`, {
|
||||||
method: "GET",
|
method: "GET",
|
||||||
headers: headers
|
headers: headers
|
||||||
|
|
Loading…
Reference in a new issue