Sunshine v2025.118.151840
Self-hosted game stream host for Moonlight.
confighttp.h
Go to the documentation of this file.
1
5#pragma once
6
7#include <functional>
8#include <string>
9
10#include "thread_safe.h"
11
12#define WEB_DIR SUNSHINE_ASSETS_DIR "/web/"
13
14namespace confighttp {
15 constexpr auto PORT_HTTPS = 1;
16 void
17 start();
18} // namespace confighttp
19
20// mime types map
21const std::map<std::string, std::string> mime_types = {
22 { "css", "text/css" },
23 { "gif", "image/gif" },
24 { "htm", "text/html" },
25 { "html", "text/html" },
26 { "ico", "image/x-icon" },
27 { "jpeg", "image/jpeg" },
28 { "jpg", "image/jpeg" },
29 { "js", "application/javascript" },
30 { "json", "application/json" },
31 { "png", "image/png" },
32 { "svg", "image/svg+xml" },
33 { "ttf", "font/ttf" },
34 { "txt", "text/plain" },
35 { "woff2", "font/woff2" },
36 { "xml", "text/xml" },
37};
Declarations for thread-safe data structures.