-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
404 page not found #6
Comments
Hi bro, you can refer API document |
Hi, it doesn't work, I cannot find a way to get the WebUI working. |
You can try run in docker, if you want runinng in linux vm, you need install a nginx or other web server |
The static assets aren't served by the application. That's why an nginx configuration exists which listens on a different port which can be changed to anything (e.g. 443) https://github.com/cylonchau/firewalld-gateway/blob/aff50c483884cbb78ba1cc2ecb592669f8f17139/uranus.nginx.conf |
will update
Best regards
…________________________________
寄件者: joe-at-startupmedia ***@***.***>
寄件日期: 2024年8月20日 08:57
收件者: cylonchau/firewalld-gateway ***@***.***>
副本: Cylon ***@***.***>; Comment ***@***.***>
主旨: Re: [cylonchau/firewalld-gateway] 404 page not found (Issue #6)
The static assets aren't served by the application. That's why an nginx configuration exists which listens on a different port which can be changed to anything (e.g. 443) https://github.com/cylonchau/firewalld-gateway/blob/aff50c483884cbb78ba1cc2ecb592669f8f17139/uranus.nginx.conf
—
Reply to this email directly, view it on GitHub<#6 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AHDSYB3HGUUVN6YAYPIIZ6LZSKH6JAVCNFSM6AAAAABMY27WK6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJXG43DMMRWG4>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Please refer install manual |
Please refer install manual |
@cylonchau no worries I was able to get the web assets working, I was trying to explain to the OP why the binary doesn't serve the static assets. Personally I had problems establishing communications with DBUS because the latest version doesn't allow tcp communication using the method explained. I would open a separate issue but I have since moved on. |
I haven't figured out how to embed static files into the binary yet. 😥, TCP need configure dbus enable allow remote connection, default is not allow. |
cylonchau give me a few, I'll open another issue explaining the TCP dbus issue. |
@cylonchau I'm getting a 404 trying to register a user: Started process:
Any ideas? |
nvm, I figured it out: firewalld-gateway/docs/swagger.yaml Line 1924 in 67b2e80
I was referring to that old postman docs. updated command to crate a user is: curl -X POST "http://0.0.0.0:2952/sso/signup" --data '{"username": "admin1","password": "1112"}' |
This feature must be enable Database config, if not, those router will not reigster, this is only a firewalld rest api. Please refer install manual, you must change config and migarte database. if !config.CONFIG.MySQL.IsEmpty() || !config.CONFIG.SQLite.IsEmpty() {
ssoRouter := &sso.SSO{}
ssoRouter.RegisterUserAPI(ssoGroup)
// auth route
authRouter := &auth.Auth{}
authRouter.RegisterUserAPI(authAPI)
usersRouter := &user.User{}
usersRouter.RegisterUserAPI(userAPI)
tokenRouter := &Token.Token{}
tokenRouter.RegisterTokenAPI(tokenAPI)
tagRouter := &tag.Tag{}
tagRouter.RegisterTagAPI(tagGroup)
hostRouter := &host.Host{}
hostRouter.RegisterHostAPI(hostGroup)
asyncHostRouter := &host.AsyncHost{}
asyncHostRouter.RegisterAsyncHostAPI(hostGroup)
templateRouter := &template.Template{}
templateRouter.RegisterTemplateAPI(templateGroup)
auditRouter := &audit.Audit{}
auditRouter.RegisterAuditAPI(auditAPI)
}
} |
@cylonchau I already ran with |
must both config database in config file, and run migration; and API doc is already build in, you can use /swagger/index.html access API document. |
Latest version is can embed assets in binary file. |
Hi, I can't get to install the app, after cloning the repository and building it with make, all I get after executing the binary and going to the URL of the web server is "404 page not found". Any idea of what's happening? Thanks
The text was updated successfully, but these errors were encountered: