Sunshine v2025.628.4510
Self-hosted game stream host for Moonlight.
confighttp.h
Go to the documentation of this file.
1
5#pragma once
6
7// standard includes
8#include <string>
9
10// local includes
11#include "thread_safe.h"
12
13#define WEB_DIR SUNSHINE_ASSETS_DIR "/web/"
14
15namespace confighttp {
16 constexpr auto PORT_HTTPS = 1;
17 void 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.