mirror of
https://github.com/smolgrrr/TAO.git
synced 2024-09-20 09:21:25 +00:00
prep for smolgrrr umbrel appstore
This commit is contained in:
parent
51927fefc4
commit
2526540403
3
client/.gitignore
vendored
3
client/.gitignore
vendored
@ -23,4 +23,5 @@ npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
|
||||
bun.lockb
|
||||
bun.lockb
|
||||
.env
|
@ -17,5 +17,6 @@ FROM nginx:alpine AS production
|
||||
COPY --from=build /app/build /usr/share/nginx/html
|
||||
# Optional: If you have a custom nginx.conf, you can copy it to the container
|
||||
# COPY nginx.conf /etc/nginx/nginx.conf
|
||||
EXPOSE 80
|
||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||
EXPOSE 42069
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
|
7
client/nginx.conf
Normal file
7
client/nginx.conf
Normal file
@ -0,0 +1,7 @@
|
||||
server {
|
||||
listen 42069;
|
||||
location / {
|
||||
root /usr/share/nginx/html;
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
}
|
@ -10,7 +10,7 @@ const Settings = () => {
|
||||
const [filterDifficulty, setFilterDifficulty] = useState(localStorage.getItem('filterDifficulty') || 20);
|
||||
const [difficulty, setDifficulty] = useState(localStorage.getItem('difficulty') || 21);
|
||||
const [showAdvancedSettings, setShowAdvancedSettings] = useState(false);
|
||||
const [powServer, setPowServer] = useState(localStorage.getItem('powserver') || '');
|
||||
const [powServer, setPowServer] = useState(process.env.REACT_APP_POWSERVER || localStorage.getItem('powserver') || '');
|
||||
const [testDiff, setTestDiff] = useState('21')
|
||||
const [testResult, setTestResult] = useState<TestResponse>()
|
||||
|
||||
@ -28,7 +28,6 @@ const Settings = () => {
|
||||
const event = new CustomEvent('settingsChanged', { detail: eventData });
|
||||
window.dispatchEvent(event);
|
||||
};
|
||||
console.log(powServer)
|
||||
|
||||
const handleTest = () => {
|
||||
setTestResult({ timeTaken: '...', hashrate: '...' });
|
||||
@ -152,7 +151,6 @@ const Settings = () => {
|
||||
</a>
|
||||
<div>
|
||||
<span>Found a bug? dm me: <a className="underline" href="https://njump.me/npub13azv2cf3kd3xdzcwqxlgcudjg7r9nzak37usnn7h374lkpvd6rcq4k8m54">doot</a> or <a className="underline" href="mailto:smolgrrr@protonmail.com">smolgrrr@protonmail.com</a></span>
|
||||
<img className="h-16" src="doot.jpeg" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -17,7 +17,7 @@ COPY . .
|
||||
RUN go build -o main .
|
||||
|
||||
# Expose port 8080 to the outside world
|
||||
EXPOSE 8080
|
||||
EXPOSE 42068
|
||||
|
||||
# Command to run the executable
|
||||
CMD ["./main"]
|
@ -133,5 +133,5 @@ func main() {
|
||||
http.Handle("/powgen", corsMiddleware(http.HandlerFunc(handlePOW)))
|
||||
http.Handle("/test", corsMiddleware(http.HandlerFunc(handleTest)))
|
||||
|
||||
log.Fatal(http.ListenAndServe("0.0.0.0:8080", nil))
|
||||
log.Fatal(http.ListenAndServe("0.0.0.0:42068", nil))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user