I think my problem is that I still have apache2 on my server and it doesn’t work with nginx on the same server. A friend told me about docker but idk what that is. I have to learn about it first.
All I do is to put random commands in the server because there is noone explaining the stuff.
I’m waiting for the nginx success page to pop up when I put my server IP in the browser
Then you aren’t in the right folder. Please redo everything from the basic setup exactly, and if it doesn’t work then let me know. I do not support Apache2, so you’re on your own there. Best I can say is for you to skip the Nginx bit altogether and work out how to set up a reverse proxy in Apache2 instead.
local http = game:GetService("HttpService")
local link = "https://webhook.lewistehminerz.dev/api/webhooks/???????????????????/??????????????????????????????????????????????????????????????????????"
local TimeInUnix = os.time()
local Date = script.Parent
local dt = DateTime.now()
local stringToFormat = "%I:%M %p"
local result = os.date(stringToFormat, TimeInUnix)
local debounce = false
game.ReplicatedStorage.BugReport.OnServerEvent:Connect(function(player, report)
if debounce then return end
debounce = true
local data = {
["content"] = "** **",
["embeds"] = {{
["title"] = "Submitted a bug report saying",
["description"] = '"' .. report .. '"',
["type"] = "rich",
["color"] = tonumber(0xffffff),
["fields"] = {
{
["name"] = "Username",
["value"] = player.Name,
["inline"] = true
},
{
["name"] = "Display Name",
["value"] = player.DisplayName,
["inline"] = true
},
{
["name"] = "Date of Response",
["value"] = "This response was submitted at " .. dt:FormatLocalTime("LLLL", "en-us") .. ".",
["inline"] = false
}
}
}}
--["content"] = player.Name .. " submitted a report saying... " .. report .. "! Thanks for pointing that out, " .. player.DisplayName .. "! We might even reach out to you!"
}
data = http:JSONEncode(data)
http:PostAsync(link, data)
wait(10) --Cooldown time
debounce = false
end)
Why did it have Error 404 HTTP 403 (Forbidden)? Did I do something wrong in the script? Does it not handle embeds? I’m so confused, and I used the webhook link format that you requested. Did I need a ModuleScript? Is it broken? Bug report system. SOS!
(Don’t mind my horrible formatting).
ServerScript. Happens in Player and Studio regardless
Also, here’s the button script if it’s useful at all
script.Parent.MouseButton1Click:Connect(function()
local report = script.Parent.Parent.Parent.TextBox.Text
game.ReplicatedStorage.BugReport:FireServer(report, game.Players.LocalPlayer)
wait(0.1)
script.Parent.Parent.Parent.TextBox.Text = "Thank you for submitting your report! You can submit another in 10 seconds."
wait(3)
script.Parent.Parent.Parent.Parent.Frame.Visible = false
end)
I resetted my whole server and got everything running. It’s also showing as online in ‘pm2 list’. I tried to test it but no message in discord and no error code. Idk if I have to do more stuff that is not mentioned.
I hope I had to put the nginx site stuff in the config file of nginx. Otherwise idk what to do
There was an issue with the queue system yesterday which I thought I made a post about, but turns out I didn’t, apologies! Your webhooks should be working fine now if it was using that system. This was due to an in-place operating system upgrade which ended up crashing RabbitMQ, and it took me a little while to realise.
Thank you!
Your webhooks should work fine if you’re not abusing the proxy and you’re not using completely new ones. That message comes up when the proxy is protecting itself from people who are trying to get it banned from Discord, which is a system I had to add a while ago since the first release of this got itself banned within a few days as people decided to be bad actors. There’s no resolution that you or I can do at present (not one that costs me quite a bit of money anyway).