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"?>
|
||||
<module type="WEB_MODULE" version="4">
|
||||
<component name="Go" enabled="true" />
|
||||
<component name="NewModuleRootManager">
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<excludeFolder url="file://$MODULE_DIR$/temp" />
|
||||
|
|
|
@ -10,7 +10,6 @@ COPY public ./public
|
|||
COPY src ./src
|
||||
COPY .git ./.git
|
||||
|
||||
ARG REACT_APP_TCL_AUTH
|
||||
RUN export REACT_APP_VERSION=$(git describe --always) && \
|
||||
export REACT_APP_DATE=$(date +"%Y-%m-%d %H:%M:%S") && \
|
||||
yarn build
|
||||
|
|
|
@ -2,8 +2,6 @@ services:
|
|||
app:
|
||||
build:
|
||||
context: .
|
||||
args:
|
||||
REACT_APP_TCL_AUTH: changeme
|
||||
restart: always
|
||||
networks:
|
||||
- frontend
|
||||
|
|
|
@ -89,7 +89,6 @@ class App extends React.Component<{}, IAppState> {
|
|||
|
||||
private refresh() {
|
||||
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}`, {
|
||||
method: "GET",
|
||||
headers: headers
|
||||
|
|
Loading…
Reference in a new issue